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

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

Issue 7655055: [Sync] Make BackendMigrator not wait for full sync cycles (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address more comments Created 9 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/sync/engine/syncer_proto_util.cc ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/data_type_manager_impl.h
diff --git a/chrome/browser/sync/glue/data_type_manager_impl.h b/chrome/browser/sync/glue/data_type_manager_impl.h
index 01af332f8afc1098d910ce680ade83b74cf5c59a..f7d63ff43d141f7c2f85c771335944ce547b156e 100644
--- a/chrome/browser/sync/glue/data_type_manager_impl.h
+++ b/chrome/browser/sync/glue/data_type_manager_impl.h
@@ -59,6 +59,10 @@ class DataTypeManagerImpl : public DataTypeManager {
bool GetControllersNeedingStart(
std::vector<DataTypeController*>* needs_start);
+ // If there's a pending reconfigure, processes it and returns true.
+ // Otherwise, returns false.
+ bool ProcessReconfigure();
+
void Restart(sync_api::ConfigureReason reason, bool enable_nigori);
void DownloadReady(bool success);
void NotifyStart();
@@ -88,8 +92,12 @@ class DataTypeManagerImpl : public DataTypeManager {
bool needs_reconfigure_;
// The reason for the last reconfigure attempt. Not this will be set to a
- // valid value only if needs_reconfigure_ is set.
+ // valid value only when |needs_reconfigure_| is set.
sync_api::ConfigureReason last_configure_reason_;
+ // Whether enable_nigori was set on the last reconfigure attempt.
+ // Like |last_configure_reason_|, set to a valid value only when
+ // |needs_reconfigure_| is set.
+ bool last_enable_nigori_;
base::WeakPtrFactory<DataTypeManagerImpl> weak_ptr_factory_;
« no previous file with comments | « chrome/browser/sync/engine/syncer_proto_util.cc ('k') | chrome/browser/sync/glue/data_type_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698