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

Unified Diff: chrome/browser/sync/engine/syncer_thread.h

Issue 7024058: [Sync] Clean up sync logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: even more logging 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
Index: chrome/browser/sync/engine/syncer_thread.h
diff --git a/chrome/browser/sync/engine/syncer_thread.h b/chrome/browser/sync/engine/syncer_thread.h
index 67b9376e88b30a88330fe7fa418f1bffea2c9b1f..be7d028c0f5e6e5d8344972a5dc23cca6b73178d 100644
--- a/chrome/browser/sync/engine/syncer_thread.h
+++ b/chrome/browser/sync/engine/syncer_thread.h
@@ -7,6 +7,8 @@
#define CHROME_BROWSER_SYNC_ENGINE_SYNCER_THREAD_H_
#pragma once
+#include <string>
+
#include "base/callback.h"
#include "base/memory/linked_ptr.h"
#include "base/memory/scoped_ptr.h"
@@ -43,8 +45,10 @@ class SyncerThread : public sessions::SyncSession::Delegate,
NORMAL_MODE,
};
- // Takes ownership of both |context| and |syncer|.
- SyncerThread(sessions::SyncSessionContext* context, Syncer* syncer);
+ // |name| is a display string to identify the syncer thread. Takes
+ // |ownership of both |context| and |syncer|.
+ SyncerThread(const std::string& name,
+ sessions::SyncSessionContext* context, Syncer* syncer);
virtual ~SyncerThread();
typedef Callback0::Type ModeChangeCallback;
@@ -298,6 +302,8 @@ class SyncerThread : public sessions::SyncSession::Delegate,
// the client starts up and does not need to perform an initial sync.
void SendInitialSnapshot();
+ const std::string name_;
+
base::Thread thread_;
// Modifiable versions of kDefaultLongPollIntervalSeconds which can be

Powered by Google App Engine
This is Rietveld 408576698