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

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: win 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
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..c65d9eb7f57d57b4c3d2867928564b938d5ab468 100644
--- a/chrome/installer/util/logging_installer.h
+++ b/chrome/installer/util/logging_installer.h
@@ -24,8 +24,8 @@ 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_not_lt_kMaxInstallerLogFileSize");
enum TruncateResult {
LOGFILE_UNTOUCHED,

Powered by Google App Engine
This is Rietveld 408576698