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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 2413503002: Cleanup mojo Wallpaper interfaces for mash. (Closed)
Patch Set: Sync and rebase again... Created 4 years, 2 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 (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/webui/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 #include "ui/base/webui/web_ui_util.h" 111 #include "ui/base/webui/web_ui_util.h"
112 112
113 #if !defined(OS_CHROMEOS) 113 #if !defined(OS_CHROMEOS)
114 #include "chrome/browser/ui/startup/default_browser_prompt.h" 114 #include "chrome/browser/ui/startup/default_browser_prompt.h"
115 #include "chrome/browser/ui/webui/settings_utils.h" 115 #include "chrome/browser/ui/webui/settings_utils.h"
116 #endif 116 #endif
117 117
118 #if defined(OS_CHROMEOS) 118 #if defined(OS_CHROMEOS)
119 #include "ash/common/accessibility_types.h" // nogncheck 119 #include "ash/common/accessibility_types.h" // nogncheck
120 #include "ash/common/system/chromeos/devicetype_utils.h" // nogncheck 120 #include "ash/common/system/chromeos/devicetype_utils.h" // nogncheck
121 #include "ash/common/wallpaper/wallpaper_delegate.h" // nogncheck
122 #include "ash/shell.h" // nogncheck 121 #include "ash/shell.h" // nogncheck
123 #include "chrome/browser/browser_process_platform_part.h" 122 #include "chrome/browser/browser_process_platform_part.h"
124 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 123 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
125 #include "chrome/browser/chromeos/arc/arc_auth_service.h" 124 #include "chrome/browser/chromeos/arc/arc_auth_service.h"
126 #include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h" 125 #include "chrome/browser/chromeos/login/quick_unlock/quick_unlock_utils.h"
127 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h" 126 #include "chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager.h"
128 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h" 127 #include "chrome/browser/chromeos/net/wake_on_wifi_manager.h"
129 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 128 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
130 #include "chrome/browser/chromeos/profiles/profile_helper.h" 129 #include "chrome/browser/chromeos/profiles/profile_helper.h"
131 #include "chrome/browser/chromeos/reset/metrics.h" 130 #include "chrome/browser/chromeos/reset/metrics.h"
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 } 1887 }
1889 1888
1890 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators( 1889 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators(
1891 const base::ListValue* args) { 1890 const base::ListValue* args) {
1892 SetupExtensionControlledIndicators(); 1891 SetupExtensionControlledIndicators();
1893 } 1892 }
1894 1893
1895 #if defined(OS_CHROMEOS) 1894 #if defined(OS_CHROMEOS)
1896 void BrowserOptionsHandler::HandleOpenWallpaperManager( 1895 void BrowserOptionsHandler::HandleOpenWallpaperManager(
1897 const base::ListValue* args) { 1896 const base::ListValue* args) {
1898 ash::WmShell::Get()->wallpaper_delegate()->OpenSetWallpaperPage(); 1897 chromeos::WallpaperManager::Get()->Open();
1899 } 1898 }
1900 1899
1901 void BrowserOptionsHandler::VirtualKeyboardChangeCallback( 1900 void BrowserOptionsHandler::VirtualKeyboardChangeCallback(
1902 const base::ListValue* args) { 1901 const base::ListValue* args) {
1903 bool enabled = false; 1902 bool enabled = false;
1904 args->GetBoolean(0, &enabled); 1903 args->GetBoolean(0, &enabled);
1905 1904
1906 chromeos::accessibility::EnableVirtualKeyboard(enabled); 1905 chromeos::accessibility::EnableVirtualKeyboard(enabled);
1907 } 1906 }
1908 1907
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
2234 2233
2235 bool BrowserOptionsHandler::IsDeviceOwnerProfile() { 2234 bool BrowserOptionsHandler::IsDeviceOwnerProfile() {
2236 #if defined(OS_CHROMEOS) 2235 #if defined(OS_CHROMEOS)
2237 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui())); 2236 return chromeos::ProfileHelper::IsOwnerProfile(Profile::FromWebUI(web_ui()));
2238 #else 2237 #else
2239 return true; 2238 return true;
2240 #endif 2239 #endif
2241 } 2240 }
2242 2241
2243 } // namespace options 2242 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_context_menu.cc ('k') | chrome/browser/ui/webui/settings/appearance_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698