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

Unified Diff: chrome/installer/util/logging_installer.h

Issue 821673004: replace COMPILE_ASSERT with static_assert in chrome/installer/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « chrome/installer/util/installer_state.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/logging_installer.h
diff --git a/chrome/installer/util/logging_installer.h b/chrome/installer/util/logging_installer.h
index 42153ba4b83cc8e2b612d223eae08dec245fc831..2cafd35b4e4869df1e4db5df2f810d070f4d58db 100644
--- a/chrome/installer/util/logging_installer.h
+++ b/chrome/installer/util/logging_installer.h
@@ -24,8 +24,9 @@ const int kMaxInstallerLogFileSize = 1024 * 1024;
// truncation on every update.
const int kTruncatedInstallerLogFileSize = kMaxInstallerLogFileSize / 2;
-COMPILE_ASSERT(kTruncatedInstallerLogFileSize < kMaxInstallerLogFileSize,
- kTruncatedInstallerLogFileSize_not_lt_kMaxInstallerLogFileSize);
+static_assert(kTruncatedInstallerLogFileSize < kMaxInstallerLogFileSize,
+ "kTruncatedInstallerLogFileSize should be less than "
+ "kMaxInstallerLogFileSize");
enum TruncateResult {
LOGFILE_UNTOUCHED,
« no previous file with comments | « chrome/installer/util/installer_state.cc ('k') | chrome/installer/util/shell_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698