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

Unified Diff: sync/sessions/sync_session_context.cc

Issue 9826035: [Sync] Display the client server traffic log in about:sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For submitting. Created 8 years, 9 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 | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.cc
diff --git a/sync/sessions/sync_session_context.cc b/sync/sessions/sync_session_context.cc
index 99b212f178c9c32e389e2b48f7cab92673f54e35..2ebe6552e8840109d9c4b86a938528c1699b11b7 100644
--- a/sync/sessions/sync_session_context.cc
+++ b/sync/sessions/sync_session_context.cc
@@ -20,7 +20,8 @@ SyncSessionContext::SyncSessionContext(
ModelSafeWorkerRegistrar* model_safe_worker_registrar,
ExtensionsActivityMonitor* extensions_activity_monitor,
const std::vector<SyncEngineEventListener*>& listeners,
- DebugInfoGetter* debug_info_getter)
+ DebugInfoGetter* debug_info_getter,
+ browser_sync::TrafficRecorder* traffic_recorder)
: resolver_(NULL),
connection_manager_(connection_manager),
directory_(directory),
@@ -29,7 +30,7 @@ SyncSessionContext::SyncSessionContext(
notifications_enabled_(false),
max_commit_batch_size_(kDefaultMaxCommitBatchSize),
debug_info_getter_(debug_info_getter),
- traffic_recorder_(kMaxMessagesToRecord, kMaxMessageSizeToRecord) {
+ traffic_recorder_(traffic_recorder) {
std::vector<SyncEngineEventListener*>::const_iterator it;
for (it = listeners.begin(); it != listeners.end(); ++it)
listeners_.AddObserver(*it);
@@ -41,7 +42,7 @@ SyncSessionContext::SyncSessionContext()
registrar_(NULL),
extensions_activity_monitor_(NULL),
debug_info_getter_(NULL),
- traffic_recorder_(kMaxMessagesToRecord, kMaxMessageSizeToRecord) {
+ traffic_recorder_(NULL) {
}
SyncSessionContext::~SyncSessionContext() {
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/sync_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698