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

Unified Diff: components/browser_watcher/watcher_metrics_provider_win.cc

Issue 794683005: replace COMPILE_ASSERT with static_assert in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting fixup Created 6 years 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 | « no previous file | components/captive_portal/captive_portal_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_watcher/watcher_metrics_provider_win.cc
diff --git a/components/browser_watcher/watcher_metrics_provider_win.cc b/components/browser_watcher/watcher_metrics_provider_win.cc
index 53fb44f22c1efaac3cdb3c93087b9348087be71c..0f94738ac50b8c746926ba276d32835eb4f57af5 100644
--- a/components/browser_watcher/watcher_metrics_provider_win.cc
+++ b/components/browser_watcher/watcher_metrics_provider_win.cc
@@ -23,8 +23,8 @@ void CompileAsserts() {
// and parsing, this code uses int. In practice there are no process IDs with
// the high bit set on Windows, so there's no danger of overflow if this is
// done consistently.
- COMPILE_ASSERT(sizeof(DWORD) == sizeof(int),
- process_ids_have_outgrown_an_int);
+ static_assert(sizeof(DWORD) == sizeof(int),
+ "process ids are expected to be no larger than int");
}
// This function does soft matching on the PID recorded in the key only.
« no previous file with comments | « no previous file | components/captive_portal/captive_portal_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698