OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/shell.h" | 10 #include "ash/shell.h" |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "chrome/browser/extensions/context_menu_matcher.h" | 13 #include "chrome/browser/extensions/context_menu_matcher.h" |
14 #include "chrome/browser/extensions/extension_prefs.h" | 14 #include "chrome/browser/extensions/extension_prefs.h" |
15 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 15 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 16 #include "chrome/browser/prefs/pref_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" | 18 #include "chrome/browser/ui/ash/launcher/chrome_launcher_controller.h" |
18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
19 #include "content/public/common/context_menu_params.h" | 20 #include "content/public/common/context_menu_params.h" |
20 #include "grit/ash_strings.h" | 21 #include "grit/ash_strings.h" |
21 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
22 #include "ui/base/l10n/l10n_util.h" | 23 #include "ui/base/l10n/l10n_util.h" |
23 | 24 |
24 namespace { | 25 namespace { |
25 | 26 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 break; | 256 break; |
256 case MENU_CHANGE_WALLPAPER: | 257 case MENU_CHANGE_WALLPAPER: |
257 ash::Shell::GetInstance()->user_wallpaper_delegate()-> | 258 ash::Shell::GetInstance()->user_wallpaper_delegate()-> |
258 OpenSetWallpaperPage(); | 259 OpenSetWallpaperPage(); |
259 break; | 260 break; |
260 default: | 261 default: |
261 extension_items_->ExecuteCommand(command_id, NULL, | 262 extension_items_->ExecuteCommand(command_id, NULL, |
262 content::ContextMenuParams()); | 263 content::ContextMenuParams()); |
263 } | 264 } |
264 } | 265 } |
OLD | NEW |