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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.h

Issue 8496002: Sync: Improve handling of database load failures (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/sync/glue/sync_backend_host.h
diff --git a/chrome/browser/sync/glue/sync_backend_host.h b/chrome/browser/sync/glue/sync_backend_host.h
index 81af6a9233ff88d35d888a2dde10ef4a6d9fb14b..bc9feca22f5d024f3f8e021503b3deaade5d7b28 100644
--- a/chrome/browser/sync/glue/sync_backend_host.h
+++ b/chrome/browser/sync/glue/sync_backend_host.h
@@ -183,10 +183,11 @@ class SyncBackendHost {
virtual void StopSyncingForShutdown();
// Called on |frontend_loop_| to kick off shutdown.
- // |sync_disabled| indicates if syncing is being disabled or not.
- // See the implementation and Core::DoShutdown for details.
- // Must be called *after* StopSyncingForShutdown.
- void Shutdown(bool sync_disabled);
+ // |delete_stale_data| indicates whether or not we should delete the local
+ // sync database.
+ // See the implementation and Core::DoShutdown for details. Must be called
+ // *after* StopSyncingForShutdown.
+ void Shutdown(bool delete_stale_data);
// Changes the set of data types that are currently being synced.
// The ready_task will be run when all of the requested data types
@@ -388,7 +389,7 @@ class SyncBackendHost {
// safe order because the thread that was using them has exited
// (in step 2).
void DoStopSyncManagerForShutdown(const base::Closure& closure);
- void DoShutdown(bool stopping_sync);
+ void DoShutdown(bool delete_stale_data);
virtual void DoRequestConfig(
const syncable::ModelTypeBitSet& types_to_config,
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | chrome/browser/sync/glue/sync_backend_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698