summaryrefslogtreecommitdiff
path: root/chromium/content/child/quota_dispatcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/child/quota_dispatcher.cc')
-rw-r--r--chromium/content/child/quota_dispatcher.cc27
1 files changed, 13 insertions, 14 deletions
diff --git a/chromium/content/child/quota_dispatcher.cc b/chromium/content/child/quota_dispatcher.cc
index 5862783768f..fa766dba127 100644
--- a/chromium/content/child/quota_dispatcher.cc
+++ b/chromium/content/child/quota_dispatcher.cc
@@ -7,7 +7,6 @@
#include "base/basictypes.h"
#include "base/lazy_instance.h"
#include "base/threading/thread_local.h"
-#include "content/child/child_thread.h"
#include "content/child/quota_message_filter.h"
#include "content/child/thread_safe_sender.h"
#include "content/common/quota_messages.h"
@@ -175,18 +174,18 @@ void QuotaDispatcher::DidFail(
pending_quota_callbacks_.Remove(request_id);
}
-COMPILE_ASSERT(int(blink::WebStorageQuotaTypeTemporary) ==
- int(storage::kStorageTypeTemporary),
- mismatching_enums);
-COMPILE_ASSERT(int(blink::WebStorageQuotaTypePersistent) ==
- int(storage::kStorageTypePersistent),
- mismatching_enums);
-
-COMPILE_ASSERT(int(blink::WebStorageQuotaErrorNotSupported) ==
- int(storage::kQuotaErrorNotSupported),
- mismatching_enums);
-COMPILE_ASSERT(int(blink::WebStorageQuotaErrorAbort) ==
- int(storage::kQuotaErrorAbort),
- mismatching_enums);
+static_assert(int(blink::WebStorageQuotaTypeTemporary) ==
+ int(storage::kStorageTypeTemporary),
+ "mismatching enums: kStorageTypeTemporary");
+static_assert(int(blink::WebStorageQuotaTypePersistent) ==
+ int(storage::kStorageTypePersistent),
+ "mismatching enums: kStorageTypePersistent");
+
+static_assert(int(blink::WebStorageQuotaErrorNotSupported) ==
+ int(storage::kQuotaErrorNotSupported),
+ "mismatching enums: kQuotaErrorNotSupported");
+static_assert(int(blink::WebStorageQuotaErrorAbort) ==
+ int(storage::kQuotaErrorAbort),
+ "mismatching enums: kQuotaErrorAbort");
} // namespace content