OLD | NEW |
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 Loading... |
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 |
OLD | NEW |