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

Side by Side Diff: chrome/browser/ui/ash/launcher/launcher_context_menu.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h" 5 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "ash/desktop_background/user_wallpaper_delegate.h" 9 #include "ash/desktop_background/user_wallpaper_delegate.h"
10 #include "ash/metrics/user_metrics_recorder.h" 10 #include "ash/metrics/user_metrics_recorder.h"
11 #include "ash/root_window_controller.h" 11 #include "ash/root_window_controller.h"
12 #include "ash/session/session_state_delegate.h" 12 #include "ash/session/session_state_delegate.h"
13 #include "ash/shelf/shelf_item_delegate.h" 13 #include "ash/shelf/shelf_item_delegate.h"
14 #include "ash/shelf/shelf_widget.h" 14 #include "ash/shelf/shelf_widget.h"
15 #include "ash/shell.h" 15 #include "ash/shell.h"
16 #include "base/bind.h" 16 #include "base/bind.h"
17 #include "base/prefs/pref_service.h"
18 #include "build/build_config.h" 17 #include "build/build_config.h"
19 #include "chrome/browser/extensions/context_menu_matcher.h" 18 #include "chrome/browser/extensions/context_menu_matcher.h"
20 #include "chrome/browser/extensions/extension_util.h" 19 #include "chrome/browser/extensions/extension_util.h"
21 #include "chrome/browser/fullscreen.h" 20 #include "chrome/browser/fullscreen.h"
22 #include "chrome/browser/prefs/incognito_mode_prefs.h" 21 #include "chrome/browser/prefs/incognito_mode_prefs.h"
23 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" 23 #include "chrome/browser/ui/ash/chrome_shell_delegate.h"
25 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" 24 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h"
26 #include "chrome/common/extensions/extension_constants.h" 25 #include "chrome/common/extensions/extension_constants.h"
27 #include "chrome/grit/generated_resources.h" 26 #include "chrome/grit/generated_resources.h"
27 #include "components/prefs/pref_service.h"
28 #include "content/public/common/context_menu_params.h" 28 #include "content/public/common/context_menu_params.h"
29 #include "grit/ash_strings.h" 29 #include "grit/ash_strings.h"
30 #include "ui/base/l10n/l10n_util.h" 30 #include "ui/base/l10n/l10n_util.h"
31 31
32 namespace { 32 namespace {
33 33
34 bool MenuItemHasLauncherContext(const extensions::MenuItem* item) { 34 bool MenuItemHasLauncherContext(const extensions::MenuItem* item) {
35 return item->contexts().Contains(extensions::MenuItem::LAUNCHER); 35 return item->contexts().Contains(extensions::MenuItem::LAUNCHER);
36 } 36 }
37 37
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 case MENU_CHANGE_WALLPAPER: 330 case MENU_CHANGE_WALLPAPER:
331 ash::Shell::GetInstance()->user_wallpaper_delegate()-> 331 ash::Shell::GetInstance()->user_wallpaper_delegate()->
332 OpenSetWallpaperPage(); 332 OpenSetWallpaperPage();
333 break; 333 break;
334 #endif 334 #endif
335 default: 335 default:
336 extension_items_->ExecuteCommand(command_id, NULL, 336 extension_items_->ExecuteCommand(command_id, NULL,
337 content::ContextMenuParams()); 337 content::ContextMenuParams());
338 } 338 }
339 } 339 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698