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

Unified Diff: chrome/browser/sync/profile_sync_service.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.h ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 5d30a843b3b5cc6934a960522789981307c0ff20..35816df89d5f54467f314d376353d4f7a877988e 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1221,7 +1221,7 @@ void ProfileSyncService::OnConnectionStatusChange(
}
}
-void ProfileSyncService::OnStopSyncingPermanently() {
+void ProfileSyncService::StopSyncingPermanently() {
sync_prefs_.SetStartSuppressed(true);
DisableForUser();
}
@@ -1335,7 +1335,7 @@ void ProfileSyncService::OnActionableError(const SyncProtocolError& error) {
// actions in the popup. The current experience might not be optimal for
// the user. We just dismiss the dialog.
if (setup_in_progress_) {
- OnStopSyncingPermanently();
+ StopSyncingPermanently();
expect_sync_configuration_aborted_ = true;
}
// Trigger an unrecoverable error to stop syncing.
@@ -1345,7 +1345,7 @@ void ProfileSyncService::OnActionableError(const SyncProtocolError& error) {
ERROR_REASON_ACTIONABLE_ERROR);
break;
case syncer::DISABLE_SYNC_ON_CLIENT:
- OnStopSyncingPermanently();
+ StopSyncingPermanently();
#if !defined(OS_CHROMEOS)
// On desktop Chrome, sign out the user after a dashboard clear.
// TODO(rsimha): Revisit this for M30. See http://crbug.com/252049.
« no previous file with comments | « chrome/browser/sync/profile_sync_service.h ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698