diff options
author | mostynb <mostynb@opera.com> | 2014-12-22 13:14:46 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 21:15:32 +0000 |
commit | 470748ce474f8fce7a566eb570021273c88d04c0 (patch) | |
tree | 6955cf4690aa6dc87f4f84d99fcb0a665d2de5aa /components/browser_watcher | |
parent | d054c43b09a963b2c138b8f7f4cb2c26a2056eb3 (diff) | |
download | chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.zip chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.gz chromium_src-470748ce474f8fce7a566eb570021273c88d04c0.tar.bz2 |
replace COMPILE_ASSERT with static_assert in components/
BUG=442514
Review URL: https://codereview.chromium.org/794683005
Cr-Commit-Position: refs/heads/master@{#309464}
Diffstat (limited to 'components/browser_watcher')
-rw-r--r-- | components/browser_watcher/watcher_metrics_provider_win.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/browser_watcher/watcher_metrics_provider_win.cc b/components/browser_watcher/watcher_metrics_provider_win.cc index 53fb44f..0f94738 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. |