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

Unified Diff: chrome/browser/sync/glue/sync_backend_host.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
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 aae6f8262cf2c742a5e3e5b627631430a145b33d..c8b2d62a75108244d5bb69411be0f5a5d38e0798 100644
--- a/chrome/browser/sync/glue/sync_backend_host.h
+++ b/chrome/browser/sync/glue/sync_backend_host.h
@@ -117,7 +117,7 @@ class SyncBackendHost {
// Create a SyncBackendHost with a reference to the |frontend| that it serves
// and communicates to via the SyncFrontend interface (on the same thread
// it used to call the constructor).
- explicit SyncBackendHost(Profile* profile);
+ SyncBackendHost(const std::string& name, Profile* profile);
// For testing.
// TODO(skrul): Extract an interface so this is not needed.
SyncBackendHost();
@@ -248,7 +248,7 @@ class SyncBackendHost {
class Core : public base::RefCountedThreadSafe<SyncBackendHost::Core>,
public sync_api::SyncManager::Observer {
public:
- Core(Profile* profile, SyncBackendHost* backend);
+ Core(const std::string& name, SyncBackendHost* backend);
// SyncManager::Observer implementation. The Core just acts like an air
// traffic controller here, forwarding incoming messages to appropriate
@@ -437,7 +437,8 @@ class SyncBackendHost {
void FinishConfigureDataTypesOnFrontendLoop();
- Profile* profile_;
+ // Name used for debugging.
+ const std::string name_;
// Our parent SyncBackendHost
SyncBackendHost* host_;
@@ -523,7 +524,10 @@ class SyncBackendHost {
// to safely talk back to the SyncFrontend.
MessageLoop* const frontend_loop_;
- Profile* profile_;
+ Profile* const profile_;
+
+ // Name used for debugging (set from profile_->GetDebugName()).
+ const std::string name_;
sync_notifier::SyncNotifierFactory sync_notifier_factory_;
« no previous file with comments | « chrome/browser/sync/glue/data_type_manager_impl_unittest.cc ('k') | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698