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

Unified Diff: chrome/browser/dom_ui/options/personal_options_handler.cc

Issue 5144001: DOMUI: Hide the sync section if sync is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/personal_options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/options/personal_options_handler.cc
diff --git a/chrome/browser/dom_ui/options/personal_options_handler.cc b/chrome/browser/dom_ui/options/personal_options_handler.cc
index 8eb86e7555ad06e3ba458114531ccd5ae61b965b..6b24e00ca486a919e9d49ee956315cb38769bbd7 100644
--- a/chrome/browser/dom_ui/options/personal_options_handler.cc
+++ b/chrome/browser/dom_ui/options/personal_options_handler.cc
@@ -47,8 +47,6 @@ void PersonalOptionsHandler::GetLocalizedValues(
DictionaryValue* localized_strings) {
DCHECK(localized_strings);
- localized_strings->SetString("sync_disabled_info",
- l10n_util::GetStringUTF16(IDS_SYNC_IS_DISABLED_INFO));
localized_strings->SetString("sync_section",
l10n_util::GetStringUTF16(IDS_SYNC_OPTIONS_GROUP_NAME));
localized_strings->SetString("sync_not_setup_info",
@@ -264,6 +262,8 @@ void PersonalOptionsHandler::Initialize() {
if (sync_service) {
sync_service->AddObserver(this);
OnStateChanged();
+ } else {
+ dom_ui_->CallJavascriptFunction(L"options.PersonalOptions.hideSyncSection");
}
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/resources/options/personal_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698