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

Unified Diff: ash/shell_unittest.cc

Issue 390183002: MacViews: Move menu run types parameter to constructor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months 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: ash/shell_unittest.cc
diff --git a/ash/shell_unittest.cc b/ash/shell_unittest.cc
index 59344ce3253c496f9f3e81318735b1e5b1854c7f..5d3faf65f638688110c6c85e88ef4aead06dbfc8 100644
--- a/ash/shell_unittest.cc
+++ b/ash/shell_unittest.cc
@@ -370,7 +370,7 @@ TEST_F(ShellTest, LockScreenClosesActiveMenu) {
views::Widget* widget = ash::Shell::GetPrimaryRootWindowController()->
wallpaper_controller()->widget();
scoped_ptr<views::MenuRunner> menu_runner(
- new views::MenuRunner(menu_model.get()));
+ new views::MenuRunner(menu_model.get(), views::MenuRunner::CONTEXT_MENU));
// When MenuRunner runs a nested loop the LockScreenAndVerifyMenuClosed
// command will fire, check the menu state and ensure the nested menu loop
@@ -384,8 +384,7 @@ TEST_F(ShellTest, LockScreenClosesActiveMenu) {
NULL,
gfx::Rect(),
views::MENU_ANCHOR_TOPLEFT,
- ui::MENU_SOURCE_MOUSE,
- views::MenuRunner::CONTEXT_MENU));
+ ui::MENU_SOURCE_MOUSE));
}
TEST_F(ShellTest, ManagedWindowModeBasics) {
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | chrome/browser/ui/views/accessibility/accessibility_event_router_views_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698