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

Side by Side Diff: chrome/browser/sync/sessions/sync_session_context.cc

Issue 6874018: make new syncer thread the default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload before submit. Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync/sessions/sync_session_context.h" 5 #include "chrome/browser/sync/sessions/sync_session_context.h"
6 6
7 #include "chrome/browser/sync/util/extensions_activity_monitor.h" 7 #include "chrome/browser/sync/util/extensions_activity_monitor.h"
8 #include "chrome/browser/sync/sessions/session_state.h" 8 #include "chrome/browser/sync/sessions/session_state.h"
9 #include "content/browser/browser_thread.h" 9 #include "content/browser/browser_thread.h"
10 10
11 namespace browser_sync { 11 namespace browser_sync {
(...skipping 17 matching lines...) Expand all
29 } 29 }
30 30
31 SyncSessionContext::~SyncSessionContext() { 31 SyncSessionContext::~SyncSessionContext() {
32 // In unittests, there may be no UI thread, so the above will fail. 32 // In unittests, there may be no UI thread, so the above will fail.
33 if (!BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE, 33 if (!BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE,
34 extensions_activity_monitor_)) { 34 extensions_activity_monitor_)) {
35 delete extensions_activity_monitor_; 35 delete extensions_activity_monitor_;
36 } 36 }
37 } 37 }
38 38
39 void SyncSessionContext::set_last_snapshot(
40 const SyncSessionSnapshot& snapshot) {
41 previous_session_snapshot_.reset(new SyncSessionSnapshot(snapshot));
42 }
43
44 } // namespace sessions 39 } // namespace sessions
45 } // namespace browser_sync 40 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/sessions/sync_session_context.h ('k') | chrome/browser/sync/test_profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698