Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Unified Diff: content/child/quota_dispatcher.cc

Issue 791923003: replace COMPILE_ASSERT with static_assert in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixups Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/file_info_util.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/quota_dispatcher.cc
diff --git a/content/child/quota_dispatcher.cc b/content/child/quota_dispatcher.cc
index 5862783768fc08db9f1ae92886e5e2ab13652f1b..1a1577ae622c910f6a8b0b79787116d666a429e0 100644
--- a/content/child/quota_dispatcher.cc
+++ b/content/child/quota_dispatcher.cc
@@ -175,18 +175,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
« no previous file with comments | « content/child/file_info_util.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698