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/profiles/profile_manager.h" | 5 #include "chrome/browser/profiles/profile_manager.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 27 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
28 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" | 28 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" |
29 #include "chrome/browser/profiles/profile_destroyer.h" | 29 #include "chrome/browser/profiles/profile_destroyer.h" |
30 #include "chrome/browser/profiles/profile_info_cache.h" | 30 #include "chrome/browser/profiles/profile_info_cache.h" |
31 #include "chrome/browser/profiles/profile_metrics.h" | 31 #include "chrome/browser/profiles/profile_metrics.h" |
32 #include "chrome/browser/profiles/startup_task_runner_service.h" | 32 #include "chrome/browser/profiles/startup_task_runner_service.h" |
33 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" | 33 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" |
34 #include "chrome/browser/sync/profile_sync_service.h" | 34 #include "chrome/browser/sync/profile_sync_service.h" |
35 #include "chrome/browser/sync/profile_sync_service_factory.h" | 35 #include "chrome/browser/sync/profile_sync_service_factory.h" |
36 #include "chrome/browser/ui/browser.h" | 36 #include "chrome/browser/ui/browser.h" |
37 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 37 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
38 #include "chrome/common/chrome_constants.h" | 38 #include "chrome/common/chrome_constants.h" |
39 #include "chrome/common/chrome_notification_types.h" | 39 #include "chrome/common/chrome_notification_types.h" |
40 #include "chrome/common/chrome_paths_internal.h" | 40 #include "chrome/common/chrome_paths_internal.h" |
41 #include "chrome/common/chrome_switches.h" | 41 #include "chrome/common/chrome_switches.h" |
42 #include "chrome/common/logging_chrome.h" | 42 #include "chrome/common/logging_chrome.h" |
43 #include "chrome/common/pref_names.h" | 43 #include "chrome/common/pref_names.h" |
44 #include "chrome/common/url_constants.h" | 44 #include "chrome/common/url_constants.h" |
45 #include "content/public/browser/browser_thread.h" | 45 #include "content/public/browser/browser_thread.h" |
46 #include "content/public/browser/notification_service.h" | 46 #include "content/public/browser/notification_service.h" |
47 #include "content/public/browser/user_metrics.h" | 47 #include "content/public/browser/user_metrics.h" |
(...skipping 1107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 ProfileManager::ProfileInfo::ProfileInfo( | 1155 ProfileManager::ProfileInfo::ProfileInfo( |
1156 Profile* profile, | 1156 Profile* profile, |
1157 bool created) | 1157 bool created) |
1158 : profile(profile), | 1158 : profile(profile), |
1159 created(created) { | 1159 created(created) { |
1160 } | 1160 } |
1161 | 1161 |
1162 ProfileManager::ProfileInfo::~ProfileInfo() { | 1162 ProfileManager::ProfileInfo::~ProfileInfo() { |
1163 ProfileDestroyer::DestroyProfileWhenAppropriate(profile.release()); | 1163 ProfileDestroyer::DestroyProfileWhenAppropriate(profile.release()); |
1164 } | 1164 } |
OLD | NEW |