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

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

Issue 684143003: Make chrome/browser/ui/webui not depend on ash when using Athena (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_do_not_use_ash43_kiosk_mode
Patch Set: Created 6 years, 1 month 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 <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 } 1698 }
1699 1699
1700 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators( 1700 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators(
1701 const base::ListValue* args) { 1701 const base::ListValue* args) {
1702 SetupExtensionControlledIndicators(); 1702 SetupExtensionControlledIndicators();
1703 } 1703 }
1704 1704
1705 #if defined(OS_CHROMEOS) 1705 #if defined(OS_CHROMEOS)
1706 void BrowserOptionsHandler::HandleOpenWallpaperManager( 1706 void BrowserOptionsHandler::HandleOpenWallpaperManager(
1707 const base::ListValue* args) { 1707 const base::ListValue* args) {
1708 #if defined(USE_ASH)
1708 ash::Shell::GetInstance()->user_wallpaper_delegate()->OpenSetWallpaperPage(); 1709 ash::Shell::GetInstance()->user_wallpaper_delegate()->OpenSetWallpaperPage();
Evan Stade 2014/10/31 18:27:12 #else notimplemented? notreached?
pkotwicz 2014/10/31 19:07:58 Added NOTIMPLEMENTED() We will need to grep the c
1710 #endif
1709 } 1711 }
1710 1712
1711 void BrowserOptionsHandler::VirtualKeyboardChangeCallback( 1713 void BrowserOptionsHandler::VirtualKeyboardChangeCallback(
1712 const base::ListValue* args) { 1714 const base::ListValue* args) {
1713 bool enabled = false; 1715 bool enabled = false;
1714 args->GetBoolean(0, &enabled); 1716 args->GetBoolean(0, &enabled);
1715 1717
1716 chromeos::accessibility::EnableVirtualKeyboard(enabled); 1718 chromeos::accessibility::EnableVirtualKeyboard(enabled);
1717 } 1719 }
1718 1720
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 1987
1986 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, 1988 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked,
1987 bool disabled) { 1989 bool disabled) {
1988 web_ui()->CallJavascriptFunction( 1990 web_ui()->CallJavascriptFunction(
1989 "BrowserOptions.setMetricsReportingCheckboxState", 1991 "BrowserOptions.setMetricsReportingCheckboxState",
1990 base::FundamentalValue(checked), 1992 base::FundamentalValue(checked),
1991 base::FundamentalValue(disabled)); 1993 base::FundamentalValue(disabled));
1992 } 1994 }
1993 1995
1994 } // namespace options 1996 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698