Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1072)

Side by Side Diff: chrome/browser/profiles/profile_manager.cc

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/deferred_sequenced_task_runner.h" 14 #include "base/deferred_sequenced_task_runner.h"
15 #include "base/files/file_enumerator.h" 15 #include "base/files/file_enumerator.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #include "base/files/file_util.h" 17 #include "base/files/file_util.h"
18 #include "base/metrics/histogram_macros.h" 18 #include "base/metrics/histogram_macros.h"
19 #include "base/prefs/pref_service.h"
20 #include "base/prefs/scoped_user_pref_update.h"
21 #include "base/profiler/scoped_profile.h" 19 #include "base/profiler/scoped_profile.h"
22 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
24 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
25 #include "base/trace_event/trace_event.h" 23 #include "base/trace_event/trace_event.h"
26 #include "build/build_config.h" 24 #include "build/build_config.h"
27 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 25 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
28 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h" 26 #include "chrome/browser/bookmarks/startup_task_runner_service_factory.h"
29 #include "chrome/browser/browser_process.h" 27 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/chrome_notification_types.h" 28 #include "chrome/browser/chrome_notification_types.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #include "chrome/grit/generated_resources.h" 63 #include "chrome/grit/generated_resources.h"
66 #include "components/bookmarks/browser/bookmark_model.h" 64 #include "components/bookmarks/browser/bookmark_model.h"
67 #include "components/bookmarks/browser/startup_task_runner_service.h" 65 #include "components/bookmarks/browser/startup_task_runner_service.h"
68 #include "components/bookmarks/common/bookmark_pref_names.h" 66 #include "components/bookmarks/common/bookmark_pref_names.h"
69 #include "components/browser_sync/browser/profile_sync_service.h" 67 #include "components/browser_sync/browser/profile_sync_service.h"
70 #include "components/content_settings/core/browser/host_content_settings_map.h" 68 #include "components/content_settings/core/browser/host_content_settings_map.h"
71 #include "components/invalidation/impl/profile_invalidation_provider.h" 69 #include "components/invalidation/impl/profile_invalidation_provider.h"
72 #include "components/invalidation/public/invalidation_service.h" 70 #include "components/invalidation/public/invalidation_service.h"
73 #include "components/password_manager/core/browser/password_store.h" 71 #include "components/password_manager/core/browser/password_store.h"
74 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h" 72 #include "components/password_manager/sync/browser/password_manager_setting_migr ator_service.h"
73 #include "components/prefs/pref_service.h"
74 #include "components/prefs/scoped_user_pref_update.h"
75 #include "components/search_engines/default_search_manager.h" 75 #include "components/search_engines/default_search_manager.h"
76 #include "components/signin/core/browser/account_fetcher_service.h" 76 #include "components/signin/core/browser/account_fetcher_service.h"
77 #include "components/signin/core/browser/account_tracker_service.h" 77 #include "components/signin/core/browser/account_tracker_service.h"
78 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 78 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
79 #include "components/signin/core/browser/signin_manager.h" 79 #include "components/signin/core/browser/signin_manager.h"
80 #include "components/signin/core/common/profile_management_switches.h" 80 #include "components/signin/core/common/profile_management_switches.h"
81 #include "components/signin/core/common/signin_pref_names.h" 81 #include "components/signin/core/common/signin_pref_names.h"
82 #include "content/public/browser/browser_thread.h" 82 #include "content/public/browser/browser_thread.h"
83 #include "content/public/browser/notification_service.h" 83 #include "content/public/browser/notification_service.h"
84 #include "content/public/browser/user_metrics.h" 84 #include "content/public/browser/user_metrics.h"
(...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 1547
1548 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path); 1548 FinishDeletingProfile(profile_to_delete_path, new_active_profile_path);
1549 if (!original_callback.is_null()) 1549 if (!original_callback.is_null())
1550 original_callback.Run(loaded_profile, status); 1550 original_callback.Run(loaded_profile, status);
1551 } 1551 }
1552 #endif // !defined(OS_ANDROID) && !defined(OS_IOS) 1552 #endif // !defined(OS_ANDROID) && !defined(OS_IOS)
1553 1553
1554 ProfileManagerWithoutInit::ProfileManagerWithoutInit( 1554 ProfileManagerWithoutInit::ProfileManagerWithoutInit(
1555 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) { 1555 const base::FilePath& user_data_dir) : ProfileManager(user_data_dir) {
1556 } 1556 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/profiles/profile_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698