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

Unified Diff: sync/sessions/sync_session_context.h

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/engine/traffic_recorder_unittest.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.h
diff --git a/sync/sessions/sync_session_context.h b/sync/sessions/sync_session_context.h
index 60e3d597670855dcc85448dea844598c264d424f..5c217264f6c8b6ce8546dd71fdb33338f47657c2 100644
--- a/sync/sessions/sync_session_context.h
+++ b/sync/sessions/sync_session_context.h
@@ -56,7 +56,8 @@ class 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);
// Empty constructor for unit tests.
SyncSessionContext();
@@ -125,7 +126,7 @@ class SyncSessionContext {
syncable::ModelTypeSet GetThrottledTypes() const;
browser_sync::TrafficRecorder* traffic_recorder() {
- return &traffic_recorder_;
+ return traffic_recorder_;
}
private:
@@ -182,8 +183,7 @@ class SyncSessionContext {
// unthrottled.
UnthrottleTimes unthrottle_times_;
- // TODO(lipalani): Move the creation of this to |SyncManager|.
- browser_sync::TrafficRecorder traffic_recorder_;
+ browser_sync::TrafficRecorder* traffic_recorder_;
DISALLOW_COPY_AND_ASSIGN(SyncSessionContext);
};
« no previous file with comments | « sync/engine/traffic_recorder_unittest.cc ('k') | sync/sessions/sync_session_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698