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

Unified Diff: chrome/browser/sync/sessions/sync_session_context.cc

Issue 8595023: [Sync] Parse and save per-data type throttle data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 9 years, 1 month 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/sessions/sync_session_context.cc
diff --git a/chrome/browser/sync/sessions/sync_session_context.cc b/chrome/browser/sync/sessions/sync_session_context.cc
index b92015ae43fb0c9d1c82740c8c2e8ef3c371cc89..5db36372727a42d17fd73bba18a96ebc6fdac307 100644
--- a/chrome/browser/sync/sessions/sync_session_context.cc
+++ b/chrome/browser/sync/sessions/sync_session_context.cc
@@ -33,6 +33,14 @@ SyncSessionContext::SyncSessionContext(
listeners_.AddObserver(*it);
}
+SyncSessionContext::SyncSessionContext()
+ : connection_manager_(NULL),
+ directory_manager_(NULL),
+ registrar_(NULL),
+ extensions_activity_monitor_(NULL),
+ debug_info_getter_(NULL) {
+}
+
SyncSessionContext::~SyncSessionContext() {
// In unittests, there may be no UI thread, so the above will fail.
if (!BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE,
@@ -41,5 +49,15 @@ SyncSessionContext::~SyncSessionContext() {
}
}
+void SyncSessionContext::AddUnthrottleTime(const syncable::ModelTypeSet& types,
+ const base::TimeTicks& time) {
akalin 2011/11/21 20:04:26 indent
lipalani1 2011/11/21 21:55:38 Done.
+ for (syncable::ModelTypeSet::const_iterator it = types.begin();
+ it != types.end();
+ ++it) {
+ DCHECK(unthrottle_times_.count(*it) == 0);
akalin 2011/11/21 20:04:26 DCHECK_EQ
lipalani1 2011/11/21 21:55:38 Actually removed it. I thought about this further
+ unthrottle_times_[*it] = time;
+ }
+}
+
} // namespace sessions
} // namespace browser_sync

Powered by Google App Engine
This is Rietveld 408576698