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

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: 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..a63095236cb2b3fc261da330369789cacb0f4230 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.cc
+++ b/chrome/browser/ui/webui/options/browser_options_handler.cc
@@ -658,17 +658,16 @@ void BrowserOptionsHandler::RegisterMessages() {
}
void BrowserOptionsHandler::OnStateChanged() {
- web_ui()->CallJavascriptFunction("BrowserOptions.updateSyncState",
- *GetSyncStateDictionary());
-
- SendProfilesInfo();
Adrian Kuegel 2013/08/06 10:05:35 I haven't completely understood if removing this l
Bernhard Bauer 2013/08/06 10:38:49 Yes, I traced this back to when it was added origi
+ UpdateSyncState();
}
-void BrowserOptionsHandler::OnSigninAllowedPrefChange() {
+void BrowserOptionsHandler::UpdateSyncState() {
Adrian Kuegel 2013/08/06 10:05:35 Can you move this function (and OnSigninAllowedPre
Bernhard Bauer 2013/08/06 10:38:49 Done.
web_ui()->CallJavascriptFunction("BrowserOptions.updateSyncState",
*GetSyncStateDictionary());
+}
- SendProfilesInfo();
+void BrowserOptionsHandler::OnSigninAllowedPrefChange() {
+ UpdateSyncState();
}
void BrowserOptionsHandler::PageLoadStarted() {
« 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