OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sessions/session_service.h" | 5 #include "chrome/browser/sessions/session_service.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <set> | 10 #include <set> |
9 #include <utility> | 11 #include <utility> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/bind.h" | 14 #include "base/bind.h" |
13 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
14 #include "base/command_line.h" | 16 #include "base/command_line.h" |
15 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
16 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
17 #include "base/pickle.h" | 19 #include "base/pickle.h" |
18 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
| 21 #include "build/build_config.h" |
19 #include "chrome/browser/background/background_mode_manager.h" | 22 #include "chrome/browser/background/background_mode_manager.h" |
20 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
21 #include "chrome/browser/chrome_notification_types.h" | 24 #include "chrome/browser/chrome_notification_types.h" |
22 #include "chrome/browser/defaults.h" | 25 #include "chrome/browser/defaults.h" |
23 #include "chrome/browser/extensions/tab_helper.h" | 26 #include "chrome/browser/extensions/tab_helper.h" |
24 #include "chrome/browser/prefs/session_startup_pref.h" | 27 #include "chrome/browser/prefs/session_startup_pref.h" |
25 #include "chrome/browser/profiles/profile.h" | 28 #include "chrome/browser/profiles/profile.h" |
26 #include "chrome/browser/profiles/profile_manager.h" | 29 #include "chrome/browser/profiles/profile_manager.h" |
27 #include "chrome/browser/sessions/session_common_utils.h" | 30 #include "chrome/browser/sessions/session_common_utils.h" |
28 #include "chrome/browser/sessions/session_data_deleter.h" | 31 #include "chrome/browser/sessions/session_data_deleter.h" |
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 for (chrome::BrowserIterator it; !it.done(); it.Next()) { | 1119 for (chrome::BrowserIterator it; !it.done(); it.Next()) { |
1117 if ((*it)->profile() == profile()) | 1120 if ((*it)->profile() == profile()) |
1118 return; | 1121 return; |
1119 } | 1122 } |
1120 DeleteSessionOnlyData(profile()); | 1123 DeleteSessionOnlyData(profile()); |
1121 } | 1124 } |
1122 | 1125 |
1123 sessions::BaseSessionService* SessionService::GetBaseSessionServiceForTest() { | 1126 sessions::BaseSessionService* SessionService::GetBaseSessionServiceForTest() { |
1124 return base_session_service_.get(); | 1127 return base_session_service_.get(); |
1125 } | 1128 } |
OLD | NEW |