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

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

Issue 7024058: [Sync] Clean up sync logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments Created 9 years, 6 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/glue/sync_backend_host.h ('k') | chrome/browser/sync/profile_sync_service_harness.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/sync_backend_host.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host.cc b/chrome/browser/sync/glue/sync_backend_host.cc
index bb4af125edc3abcf96fba40c2179d64b3d125297..931721b957ed3fc7bf4712b1a1a2a4fd3076575f 100644
--- a/chrome/browser/sync/glue/sync_backend_host.cc
+++ b/chrome/browser/sync/glue/sync_backend_host.cc
@@ -59,7 +59,8 @@ using sessions::SyncSessionSnapshot;
using sync_api::SyncCredentials;
SyncBackendHost::SyncBackendHost(Profile* profile)
- : core_(new Core(ALLOW_THIS_IN_INITIALIZER_LIST(this))),
+ : core_(new Core(profile->GetDebugName(),
+ ALLOW_THIS_IN_INITIALIZER_LIST(this))),
core_thread_("Chrome_SyncCoreThread"),
frontend_loop_(MessageLoop::current()),
profile_(profile),
@@ -699,9 +700,9 @@ void SyncBackendHost::LogUnsyncedItems(int level) const {
return core_->syncapi()->LogUnsyncedItems(level);
}
-SyncBackendHost::Core::Core(SyncBackendHost* backend)
+SyncBackendHost::Core::Core(const std::string& name, SyncBackendHost* backend)
: host_(backend),
- syncapi_(new sync_api::SyncManager()),
+ syncapi_(new sync_api::SyncManager(name)),
sync_manager_observer_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
parent_router_(NULL),
processing_passphrase_(false),
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.h ('k') | chrome/browser/sync/profile_sync_service_harness.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698