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

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

Issue 2457483002: [MD Settings][Sync Settings] Updates sync status messages (Closed)
Patch Set: Addressed rogerta's comment Created 4 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
Index: chrome/browser/ui/webui/options/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/options/sync_setup_handler.cc b/chrome/browser/ui/webui/options/sync_setup_handler.cc
index bb0da58998d0e69229dc3963d2403dda1bde9801..dd7f02746a759a14ff439d56a350304fb2ea059a 100644
--- a/chrome/browser/ui/webui/options/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options/sync_setup_handler.cc
@@ -332,8 +332,8 @@ void SyncSetupHandler::RegisterMessages() {
base::Unretained(this)));
#if defined(OS_CHROMEOS)
web_ui()->RegisterMessageCallback(
- "SyncSetupDoSignOutOnAuthError",
- base::Bind(&SyncSetupHandler::HandleDoSignOutOnAuthError,
+ "AttemptUserExit",
+ base::Bind(&SyncSetupHandler::HandleAttemptUserExit,
base::Unretained(this)));
#else
web_ui()->RegisterMessageCallback("SyncSetupStopSyncing",
@@ -640,8 +640,7 @@ void SyncSetupHandler::HandleShowSetupUI(const base::ListValue* args) {
#if defined(OS_CHROMEOS)
// On ChromeOS, we need to sign out the user session to fix an auth error, so
// the user goes through the real signin flow to generate a new auth token.
-void SyncSetupHandler::HandleDoSignOutOnAuthError(const base::ListValue* args) {
- DVLOG(1) << "Signing out the user to fix a sync error.";
+void SyncSetupHandler::HandleAttemptUserExit(const base::ListValue* args) {
chrome::AttemptUserExit();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698