Chromium Code Reviews| 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 |