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

Unified Diff: chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
Index: chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc b/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
index 4588409aeb9ed596a558a7006f7a7eed9fb2a719..afa5ce62b77a06aafd694da91e940c203919c6f0 100644
--- a/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc
@@ -223,8 +223,9 @@ InstalledBubbleContent::InstalledBubbleContent(
}
default: {
// When adding a new bubble type, the flavor needs to be set.
- COMPILE_ASSERT(ExtensionInstalledBubble::GENERIC == 3,
- kBubbleTypeEnumHasChangedButNotThisSwitchStatement);
+ static_assert(ExtensionInstalledBubble::GENERIC == 3,
+ "kBubbleType enum has changed, this switch statement must "
+ "be updateed");
break;
}
}
« no previous file with comments | « chrome/browser/ui/tabs/tab_utils.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698