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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 11194011: Reverting this CL because it was committed before I gave the final LGTM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/browser_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/browser_options_handler.cc (revision 162210)
+++ chrome/browser/ui/webui/options/browser_options_handler.cc (working copy)
@@ -1294,18 +1294,16 @@
web_ui()->CallJavascriptFunction(
"BrowserOptions.setHighContrastCheckboxState",
high_contrast_enabled);
+ base::FundamentalValue screen_magnifier_enabled(
+ pref_service->GetBoolean(prefs::kScreenMagnifierEnabled));
+ web_ui()->CallJavascriptFunction(
+ "BrowserOptions.setScreenMagnifierCheckboxState",
+ screen_magnifier_enabled);
base::FundamentalValue virtual_keyboard_enabled(
pref_service->GetBoolean(prefs::kVirtualKeyboardEnabled));
web_ui()->CallJavascriptFunction(
"BrowserOptions.setVirtualKeyboardCheckboxState",
virtual_keyboard_enabled);
-
- PrefService* user_pref_service = Profile::FromWebUI(web_ui())->GetPrefs();
- base::FundamentalValue screen_magnifier_enabled(
- user_pref_service->GetBoolean(prefs::kScreenMagnifierEnabled));
- web_ui()->CallJavascriptFunction(
- "BrowserOptions.setScreenMagnifierCheckboxState",
- screen_magnifier_enabled);
}
#endif
Property changes on: chrome\browser\ui\webui\options\browser_options_handler.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « chrome/browser/chromeos/preferences.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698