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

Unified Diff: chrome/browser/extensions/window_controller.cc

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 | « no previous file | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/window_controller.cc
diff --git a/chrome/browser/extensions/window_controller.cc b/chrome/browser/extensions/window_controller.cc
index f2624ed9cd9467b12ba7e605cb576487a6951401..e35be666358098c9d7b660ce78e1f123eca5216d 100644
--- a/chrome/browser/extensions/window_controller.cc
+++ b/chrome/browser/extensions/window_controller.cc
@@ -21,8 +21,8 @@ namespace extensions {
WindowController::TypeFilter WindowController::GetAllWindowFilter() {
// This needs to be updated if there is a change to
// extensions::api::windows:WindowType.
- COMPILE_ASSERT(api::windows::WINDOW_TYPE_LAST == 5,
- Update_extensions_WindowController_to_match_WindowType);
+ static_assert(api::windows::WINDOW_TYPE_LAST == 5,
+ "Update extensions WindowController to match WindowType");
return ((1 << api::windows::WINDOW_TYPE_NORMAL) |
(1 << api::windows::WINDOW_TYPE_PANEL) |
(1 << api::windows::WINDOW_TYPE_POPUP) |
« no previous file with comments | « no previous file | chrome/installer/setup/setup_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698