| 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_impl.h" | 5 #include "chrome/browser/profiles/profile_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
| 12 #include "base/environment.h" | 12 #include "base/environment.h" |
| 13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/prefs/json_pref_store.h" | 17 #include "base/prefs/json_pref_store.h" |
| 18 #include "base/prefs/scoped_user_pref_update.h" | 18 #include "base/prefs/scoped_user_pref_update.h" |
| 19 #include "base/strings/string_number_conversions.h" | 19 #include "base/strings/string_number_conversions.h" |
| 20 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 21 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 22 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 23 #include "base/synchronization/waitable_event.h" | 23 #include "base/synchronization/waitable_event.h" |
| 24 #include "base/threading/sequenced_worker_pool.h" | 24 #include "base/threading/sequenced_worker_pool.h" |
| 25 #include "base/version.h" | 25 #include "base/version.h" |
| 26 #include "chrome/browser/autocomplete/autocomplete_classifier.h" | 26 #include "chrome/browser/autocomplete/autocomplete_classifier.h" |
| 27 #include "chrome/browser/autocomplete/shortcuts_backend.h" | 27 #include "chrome/browser/autocomplete/shortcuts_backend.h" |
| 28 #include "chrome/browser/background/background_contents_service_factory.h" | 28 #include "chrome/browser/background/background_contents_service_factory.h" |
| 29 #include "chrome/browser/background/background_mode_manager.h" | 29 #include "chrome/browser/background/background_mode_manager.h" |
| 30 #include "chrome/browser/bookmarks/bookmark_model.h" | |
| 31 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 30 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 32 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
| 33 #include "chrome/browser/chrome_notification_types.h" | 32 #include "chrome/browser/chrome_notification_types.h" |
| 34 #include "chrome/browser/content_settings/cookie_settings.h" | 33 #include "chrome/browser/content_settings/cookie_settings.h" |
| 35 #include "chrome/browser/content_settings/host_content_settings_map.h" | 34 #include "chrome/browser/content_settings/host_content_settings_map.h" |
| 36 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" | 35 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" |
| 37 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" | 36 #include "chrome/browser/dom_distiller/lazy_dom_distiller_service.h" |
| 38 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 37 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
| 39 #include "chrome/browser/download/download_service.h" | 38 #include "chrome/browser/download/download_service.h" |
| 40 #include "chrome/browser/download/download_service_factory.h" | 39 #include "chrome/browser/download/download_service_factory.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 71 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
| 73 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 72 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| 74 #include "chrome/browser/webdata/web_data_service.h" | 73 #include "chrome/browser/webdata/web_data_service.h" |
| 75 #include "chrome/common/chrome_constants.h" | 74 #include "chrome/common/chrome_constants.h" |
| 76 #include "chrome/common/chrome_paths_internal.h" | 75 #include "chrome/common/chrome_paths_internal.h" |
| 77 #include "chrome/common/chrome_switches.h" | 76 #include "chrome/common/chrome_switches.h" |
| 78 #include "chrome/common/chrome_version_info.h" | 77 #include "chrome/common/chrome_version_info.h" |
| 79 #include "chrome/common/net/url_fixer_upper.h" | 78 #include "chrome/common/net/url_fixer_upper.h" |
| 80 #include "chrome/common/pref_names.h" | 79 #include "chrome/common/pref_names.h" |
| 81 #include "chrome/common/url_constants.h" | 80 #include "chrome/common/url_constants.h" |
| 81 #include "components/bookmarks/core/browser/bookmark_model.h" |
| 82 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" | 82 #include "components/dom_distiller/content/dom_distiller_viewer_source.h" |
| 83 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 83 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 84 #include "components/startup_metric_utils/startup_metric_utils.h" | 84 #include "components/startup_metric_utils/startup_metric_utils.h" |
| 85 #include "components/user_prefs/pref_registry_syncable.h" | 85 #include "components/user_prefs/pref_registry_syncable.h" |
| 86 #include "components/user_prefs/user_prefs.h" | 86 #include "components/user_prefs/user_prefs.h" |
| 87 #include "content/public/browser/browser_thread.h" | 87 #include "content/public/browser/browser_thread.h" |
| 88 #include "content/public/browser/dom_storage_context.h" | 88 #include "content/public/browser/dom_storage_context.h" |
| 89 #include "content/public/browser/host_zoom_map.h" | 89 #include "content/public/browser/host_zoom_map.h" |
| 90 #include "content/public/browser/notification_service.h" | 90 #include "content/public/browser/notification_service.h" |
| 91 #include "content/public/browser/render_process_host.h" | 91 #include "content/public/browser/render_process_host.h" |
| (...skipping 1211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1303 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { | 1303 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { |
| 1304 #if defined(OS_CHROMEOS) | 1304 #if defined(OS_CHROMEOS) |
| 1305 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 1305 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 1306 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 1306 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 1307 g_browser_process->local_state()); | 1307 g_browser_process->local_state()); |
| 1308 } | 1308 } |
| 1309 #endif // defined(OS_CHROMEOS) | 1309 #endif // defined(OS_CHROMEOS) |
| 1310 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 1310 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 1311 GetPrefs(), g_browser_process->local_state()); | 1311 GetPrefs(), g_browser_process->local_state()); |
| 1312 } | 1312 } |
| OLD | NEW |