summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/views')
-rw-r--r--chrome/browser/ui/views/extensions/extension_installed_bubble_view.cc5
-rw-r--r--chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc5
2 files changed, 6 insertions, 4 deletions
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 4588409..afa5ce6 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;
}
}
diff --git a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
index 20a5cb4..8443bdc 100644
--- a/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
+++ b/chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.cc
@@ -1859,9 +1859,10 @@ const float kDeviceScaleFactorExpectations[] = {
1.0f,
};
-COMPILE_ASSERT(
+static_assert(
arraysize(kDragPoints) == arraysize(kDeviceScaleFactorExpectations),
- kDragPoints_and_kDeviceScaleFactorExpectations_must_have_same_size);
+ "kDragPoints and kDeviceScaleFactorExpectations must have the same "
+ "number of elements");
// Drags tab to |kDragPoints[index]|, then calls the next step function.
void CursorDeviceScaleFactorStep(