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

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

Issue 8395026: Merge 107203 - [Sync UI] Disable the "Advanced..." button when there is an unrecoverable sync error. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/912/src/
Patch Set: Created 9 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/resources/options/personal_options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/personal_options_handler.cc
===================================================================
--- chrome/browser/ui/webui/options/personal_options_handler.cc (revision 107243)
+++ chrome/browser/ui/webui/options/personal_options_handler.cc (working copy)
@@ -306,6 +306,12 @@
web_ui_->CallJavascriptFunction("PersonalOptions.setSyncStatusErrorVisible",
*visible);
+ enabled.reset(Value::CreateBooleanValue(
+ !service->unrecoverable_error_detected()));
+ web_ui_->CallJavascriptFunction(
+ "PersonalOptions.setCustomizeSyncButtonEnabled",
+ *enabled);
+
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableAutologin)) {
visible.reset(Value::CreateBooleanValue(
service->AreCredentialsAvailable()));
« no previous file with comments | « chrome/browser/resources/options/personal_options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698