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

Unified Diff: content/browser/indexed_db/indexed_db_dispatcher_host.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
Index: content/browser/indexed_db/indexed_db_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index 2d432d90fa513ee60922073106eda39010c5e1ae..7a4b40134044fddc321e5762093df109a9471bcf 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -193,8 +193,8 @@ int64 IndexedDBDispatcherHost::HostTransactionId(int64 transaction_id) {
// transaction_id are guaranteed to be unique within that renderer.
base::ProcessId pid = peer_pid();
DCHECK(!(transaction_id >> 32)) << "Transaction ids can only be 32 bits";
- COMPILE_ASSERT(sizeof(base::ProcessId) <= sizeof(int32),
- Process_ID_must_fit_in_32_bits);
+ static_assert(sizeof(base::ProcessId) <= sizeof(int32),
+ "Process ID must fit in 32 bits");
return transaction_id | (static_cast<uint64>(pid) << 32);
}
« no previous file with comments | « content/browser/gamepad/xbox_data_fetcher_mac.cc ('k') | content/browser/indexed_db/indexed_db_leveldb_coding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698