| 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 11 matching lines...) Expand all Loading... |
| 22 #include "base/trace_event/trace_event.h" | 22 #include "base/trace_event/trace_event.h" |
| 23 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 23 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 24 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h" | 24 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h" |
| 25 #include "chrome/browser/browser_process.h" | 25 #include "chrome/browser/browser_process.h" |
| 26 #include "chrome/browser/chrome_notification_types.h" | 26 #include "chrome/browser/chrome_notification_types.h" |
| 27 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 27 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
| 28 #include "chrome/browser/download/download_service.h" | 28 #include "chrome/browser/download/download_service.h" |
| 29 #include "chrome/browser/download/download_service_factory.h" | 29 #include "chrome/browser/download/download_service_factory.h" |
| 30 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" | 30 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" |
| 31 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" | 31 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact
ory.h" |
| 32 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice.h" | |
| 33 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" | 32 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv
ice_factory.h" |
| 34 #include "chrome/browser/password_manager/password_store_factory.h" | 33 #include "chrome/browser/password_manager/password_store_factory.h" |
| 35 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 34 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 36 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" | 35 #include "chrome/browser/profiles/bookmark_model_loaded_observer.h" |
| 37 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 36 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 38 #include "chrome/browser/profiles/profile_destroyer.h" | 37 #include "chrome/browser/profiles/profile_destroyer.h" |
| 39 #include "chrome/browser/profiles/profile_info_cache.h" | 38 #include "chrome/browser/profiles/profile_info_cache.h" |
| 40 #include "chrome/browser/profiles/profile_metrics.h" | 39 #include "chrome/browser/profiles/profile_metrics.h" |
| 41 #include "chrome/browser/profiles/profiles_state.h" | 40 #include "chrome/browser/profiles/profiles_state.h" |
| 42 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 41 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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" |
| 64 #include "components/content_settings/core/browser/host_content_settings_map.h" | 63 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 65 #include "components/password_manager/core/browser/password_store.h" | 64 #include "components/password_manager/core/browser/password_store.h" |
| 65 #include "components/password_manager/sync/browser/password_manager_setting_migr
ator_service.h" |
| 66 #include "components/signin/core/browser/account_fetcher_service.h" | 66 #include "components/signin/core/browser/account_fetcher_service.h" |
| 67 #include "components/signin/core/browser/account_tracker_service.h" | 67 #include "components/signin/core/browser/account_tracker_service.h" |
| 68 #include "components/signin/core/browser/gaia_cookie_manager_service.h" | 68 #include "components/signin/core/browser/gaia_cookie_manager_service.h" |
| 69 #include "components/signin/core/browser/signin_manager.h" | 69 #include "components/signin/core/browser/signin_manager.h" |
| 70 #include "components/signin/core/common/profile_management_switches.h" | 70 #include "components/signin/core/common/profile_management_switches.h" |
| 71 #include "components/signin/core/common/signin_pref_names.h" | 71 #include "components/signin/core/common/signin_pref_names.h" |
| 72 #include "content/public/browser/browser_thread.h" | 72 #include "content/public/browser/browser_thread.h" |
| 73 #include "content/public/browser/notification_service.h" | 73 #include "content/public/browser/notification_service.h" |
| 74 #include "content/public/browser/user_metrics.h" | 74 #include "content/public/browser/user_metrics.h" |
| 75 #include "content/public/common/content_switches.h" | 75 #include "content/public/common/content_switches.h" |
| (...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1501 | 1501 |
| 1502 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); | 1502 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); |
| 1503 if (!original_callback.is_null()) | 1503 if (!original_callback.is_null()) |
| 1504 original_callback.Run(loaded_profile, status); | 1504 original_callback.Run(loaded_profile, status); |
| 1505 } | 1505 } |
| 1506 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) | 1506 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) |
| 1507 | 1507 |
| 1508 ProfileManagerWithoutInit::ProfileManagerWithoutInit( | 1508 ProfileManagerWithoutInit::ProfileManagerWithoutInit( |
| 1509 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { | 1509 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { |
| 1510 } | 1510 } |
| OLD | NEW |