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

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

Issue 153643006: sync: Remove dead code related to ClearUserData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/sync/profile_sync_service.cc ('k') | components/sync_driver/sync_frontend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc
index 1bd655d15fa8206f1657c47f685684ac02dcfc14..23ae8b1e8c9e8b6727bf224295b7e6492eba52b1 100644
--- a/chrome/browser/ui/webui/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler.cc
@@ -640,13 +640,13 @@ void SyncSetupHandler::HandleConfigure(const base::ListValue* args) {
// Disable sync, but remain signed in if the user selected "Sync nothing" in
// the advanced settings dialog. Note: In order to disable sync across
- // restarts on Chrome OS, we must call OnStopSyncingPermanently(), which
+ // restarts on Chrome OS, we must call StopSyncingPermanently(), which
// suppresses sync startup in addition to disabling it.
if (configuration.sync_nothing) {
ProfileSyncService::SyncEvent(
ProfileSyncService::STOP_FROM_ADVANCED_DIALOG);
CloseUI();
- service->OnStopSyncingPermanently();
+ service->StopSyncingPermanently();
service->SetSetupInProgress(false);
return;
}
@@ -806,11 +806,11 @@ void SyncSetupHandler::CloseSyncSetup() {
// If the user clicked "Cancel" while setting up sync, disable sync
// because we don't want the sync backend to remain in the initialized
// state. Note: In order to disable sync across restarts on Chrome OS, we
- // must call OnStopSyncingPermanently(), which suppresses sync startup in
+ // must call StopSyncingPermanently(), which suppresses sync startup in
// addition to disabling it.
if (sync_service) {
DVLOG(1) << "Sync setup aborted by user action";
- sync_service->OnStopSyncingPermanently();
+ sync_service->StopSyncingPermanently();
#if !defined(OS_CHROMEOS)
// Sign out the user on desktop Chrome if they click cancel during
// initial setup.
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | components/sync_driver/sync_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698