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

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

Issue 1468803002: Switch to static_assert. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@assert1
Patch Set: message cleanup Created 5 years, 1 month 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..dcea39f156b5ade5d1e4f71a841f54d697dbb289 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 must 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