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

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

Issue 22216002: Don't update profile information when the sync state changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 4 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/ui/webui/options/browser_options_handler.h ('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/browser_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc
index 8831a3899be40ea6eb2effa83e5a736c070517c3..fae1cb5247b695f5ded1aac13d13e3fc2dfc4d08 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -658,17 +658,7 @@ void BrowserOptionsHandler::RegisterMessages() {
}
void BrowserOptionsHandler::OnStateChanged() {
- web_ui()->CallJavascriptFunction("BrowserOptions.updateSyncState",
- *GetSyncStateDictionary());
-
- SendProfilesInfo();
-}
-
-void BrowserOptionsHandler::OnSigninAllowedPrefChange() {
- web_ui()->CallJavascriptFunction("BrowserOptions.updateSyncState",
- *GetSyncStateDictionary());
-
- SendProfilesInfo();
+ UpdateSyncState();
}
void BrowserOptionsHandler::PageLoadStarted() {
@@ -1448,6 +1438,15 @@ void BrowserOptionsHandler::MouseExists(bool exists) {
}
#endif
+void BrowserOptionsHandler::UpdateSyncState() {
+ web_ui()->CallJavascriptFunction("BrowserOptions.updateSyncState",
+ *GetSyncStateDictionary());
+}
+
+void BrowserOptionsHandler::OnSigninAllowedPrefChange() {
+ UpdateSyncState();
+}
+
void BrowserOptionsHandler::HandleAutoOpenButton(const ListValue* args) {
content::RecordAction(UserMetricsAction("Options_ResetAutoOpenFiles"));
DownloadManager* manager = BrowserContext::GetDownloadManager(
« no previous file with comments | « chrome/browser/ui/webui/options/browser_options_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698