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 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/profiles/profile_info_cache.h" | 39 #include "chrome/browser/profiles/profile_info_cache.h" |
40 #include "chrome/browser/profiles/profile_metrics.h" | 40 #include "chrome/browser/profiles/profile_metrics.h" |
41 #include "chrome/browser/profiles/profiles_state.h" | 41 #include "chrome/browser/profiles/profiles_state.h" |
42 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 42 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
43 #include "chrome/browser/signin/account_reconcilor_factory.h" | 43 #include "chrome/browser/signin/account_reconcilor_factory.h" |
44 #include "chrome/browser/signin/account_tracker_service_factory.h" | 44 #include "chrome/browser/signin/account_tracker_service_factory.h" |
45 #include "chrome/browser/signin/cross_device_promo.h" | 45 #include "chrome/browser/signin/cross_device_promo.h" |
46 #include "chrome/browser/signin/cross_device_promo_factory.h" | 46 #include "chrome/browser/signin/cross_device_promo_factory.h" |
47 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 47 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
48 #include "chrome/browser/signin/signin_manager_factory.h" | 48 #include "chrome/browser/signin/signin_manager_factory.h" |
49 #include "chrome/browser/sync/profile_sync_service.h" | |
50 #include "chrome/browser/sync/profile_sync_service_factory.h" | 49 #include "chrome/browser/sync/profile_sync_service_factory.h" |
51 #include "chrome/browser/ui/browser.h" | 50 #include "chrome/browser/ui/browser.h" |
52 #include "chrome/browser/ui/browser_iterator.h" | 51 #include "chrome/browser/ui/browser_iterator.h" |
53 #include "chrome/browser/ui/sync/sync_promo_ui.h" | 52 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
54 #include "chrome/common/chrome_constants.h" | 53 #include "chrome/common/chrome_constants.h" |
55 #include "chrome/common/chrome_paths_internal.h" | 54 #include "chrome/common/chrome_paths_internal.h" |
56 #include "chrome/common/chrome_switches.h" | 55 #include "chrome/common/chrome_switches.h" |
57 #include "chrome/common/logging_chrome.h" | 56 #include "chrome/common/logging_chrome.h" |
58 #include "chrome/common/pref_names.h" | 57 #include "chrome/common/pref_names.h" |
59 #include "chrome/common/url_constants.h" | 58 #include "chrome/common/url_constants.h" |
60 #include "chrome/grit/generated_resources.h" | 59 #include "chrome/grit/generated_resources.h" |
61 #include "components/bookmarks/browser/bookmark_model.h" | 60 #include "components/bookmarks/browser/bookmark_model.h" |
62 #include "components/bookmarks/browser/startup_task_runner_service.h" | 61 #include "components/bookmarks/browser/startup_task_runner_service.h" |
63 #include "components/bookmarks/common/bookmark_pref_names.h" | 62 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 63 #include "components/browser_sync/browser/profile_sync_service.h" |
64 #include "components/content_settings/core/browser/host_content_settings_map.h" | 64 #include "components/content_settings/core/browser/host_content_settings_map.h" |
65 #include "components/invalidation/impl/profile_invalidation_provider.h" | 65 #include "components/invalidation/impl/profile_invalidation_provider.h" |
66 #include "components/invalidation/public/invalidation_service.h" | 66 #include "components/invalidation/public/invalidation_service.h" |
67 #include "components/password_manager/core/browser/password_store.h" | 67 #include "components/password_manager/core/browser/password_store.h" |
68 #include "components/password_manager/sync/browser/password_manager_setting_migr
ator_service.h" | 68 #include "components/password_manager/sync/browser/password_manager_setting_migr
ator_service.h" |
69 #include "components/search_engines/default_search_manager.h" | 69 #include "components/search_engines/default_search_manager.h" |
70 #include "components/signin/core/browser/account_fetcher_service.h" | 70 #include "components/signin/core/browser/account_fetcher_service.h" |
71 #include "components/signin/core/browser/account_tracker_service.h" | 71 #include "components/signin/core/browser/account_tracker_service.h" |
72 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 72 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
73 #include "components/signin/core/browser/signin_manager.h" | 73 #include "components/signin/core/browser/signin_manager.h" |
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1513 | 1513 |
1514 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); | 1514 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); |
1515 if (!original_callback.is_null()) | 1515 if (!original_callback.is_null()) |
1516 original_callback.Run(loaded_profile, status); | 1516 original_callback.Run(loaded_profile, status); |
1517 } | 1517 } |
1518 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 1518 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
1519 | 1519 |
1520 ProfileManagerWithoutInit::ProfileManagerWithoutInit( | 1520 ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
1521 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { | 1521 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
1522 } | 1522 } |
OLD | NEW |