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/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/environment.h" | 10 #include "base/environment.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "chrome/browser/profiles/profile_manager.h" | 64 #include "chrome/browser/profiles/profile_manager.h" |
65 #include "chrome/browser/search_engines/template_url_fetcher.h" | 65 #include "chrome/browser/search_engines/template_url_fetcher.h" |
66 #include "chrome/browser/sessions/session_service_factory.h" | 66 #include "chrome/browser/sessions/session_service_factory.h" |
67 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" | 67 #include "chrome/browser/speech/chrome_speech_recognition_preferences.h" |
68 #include "chrome/browser/sync/profile_sync_service_factory.h" | 68 #include "chrome/browser/sync/profile_sync_service_factory.h" |
69 #include "chrome/browser/ui/startup/startup_browser_creator.h" | 69 #include "chrome/browser/ui/startup/startup_browser_creator.h" |
70 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" | 70 #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
71 #include "chrome/browser/user_style_sheet_watcher.h" | 71 #include "chrome/browser/user_style_sheet_watcher.h" |
72 #include "chrome/browser/visitedlink/visitedlink_event_listener.h" | 72 #include "chrome/browser/visitedlink/visitedlink_event_listener.h" |
73 #include "chrome/browser/visitedlink/visitedlink_master.h" | 73 #include "chrome/browser/visitedlink/visitedlink_master.h" |
74 #include "chrome/browser/web_resource/promo_resource_service.h" | |
75 #include "chrome/browser/webdata/web_data_service.h" | 74 #include "chrome/browser/webdata/web_data_service.h" |
76 #include "chrome/common/chrome_constants.h" | 75 #include "chrome/common/chrome_constants.h" |
77 #include "chrome/common/chrome_notification_types.h" | 76 #include "chrome/common/chrome_notification_types.h" |
78 #include "chrome/common/chrome_paths_internal.h" | 77 #include "chrome/common/chrome_paths_internal.h" |
79 #include "chrome/common/chrome_switches.h" | 78 #include "chrome/common/chrome_switches.h" |
80 #include "chrome/common/chrome_version_info.h" | 79 #include "chrome/common/chrome_version_info.h" |
81 #include "chrome/common/pref_names.h" | 80 #include "chrome/common/pref_names.h" |
82 #include "chrome/common/url_constants.h" | 81 #include "chrome/common/url_constants.h" |
83 #include "content/public/browser/browser_thread.h" | 82 #include "content/public/browser/browser_thread.h" |
84 #include "content/public/browser/host_zoom_map.h" | 83 #include "content/public/browser/host_zoom_map.h" |
85 #include "content/public/browser/notification_service.h" | 84 #include "content/public/browser/notification_service.h" |
86 #include "content/public/browser/user_metrics.h" | 85 #include "content/public/browser/user_metrics.h" |
87 #include "grit/chromium_strings.h" | 86 #include "grit/chromium_strings.h" |
88 #include "grit/generated_resources.h" | 87 #include "grit/generated_resources.h" |
89 #include "ui/base/l10n/l10n_util.h" | 88 #include "ui/base/l10n/l10n_util.h" |
90 | 89 |
91 #if defined(ENABLE_CONFIGURATION_POLICY) | 90 #if defined(ENABLE_CONFIGURATION_POLICY) |
92 #include "chrome/browser/policy/browser_policy_connector.h" | 91 #include "chrome/browser/policy/browser_policy_connector.h" |
93 #else | 92 #else |
94 #include "chrome/browser/policy/policy_service_stub.h" | 93 #include "chrome/browser/policy/policy_service_stub.h" |
95 #endif // defined(ENABLE_CONFIGURATION_POLICY) | 94 #endif // defined(ENABLE_CONFIGURATION_POLICY) |
96 | 95 |
| 96 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
| 97 #include "chrome/browser/web_resource/promo_resource_service.h" |
| 98 #endif // ENABLE_PROMO_RESOURCE_SERVICE |
| 99 |
97 #if defined(OS_WIN) | 100 #if defined(OS_WIN) |
98 #include "chrome/installer/util/install_util.h" | 101 #include "chrome/installer/util/install_util.h" |
99 #endif | 102 #endif |
100 | 103 |
101 #if defined(OS_CHROMEOS) | 104 #if defined(OS_CHROMEOS) |
102 #include "chrome/browser/chromeos/enterprise_extension_observer.h" | 105 #include "chrome/browser/chromeos/enterprise_extension_observer.h" |
103 #include "chrome/browser/chromeos/locale_change_guard.h" | 106 #include "chrome/browser/chromeos/locale_change_guard.h" |
104 #include "chrome/browser/chromeos/login/user_manager.h" | 107 #include "chrome/browser/chromeos/login/user_manager.h" |
105 #include "chrome/browser/chromeos/preferences.h" | 108 #include "chrome/browser/chromeos/preferences.h" |
106 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | 109 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
(...skipping 998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 if (!path.empty()) | 1108 if (!path.empty()) |
1106 *cache_path = path; | 1109 *cache_path = path; |
1107 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1110 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
1108 prefs_->GetInteger(prefs::kDiskCacheSize); | 1111 prefs_->GetInteger(prefs::kDiskCacheSize); |
1109 } | 1112 } |
1110 | 1113 |
1111 base::Callback<ChromeURLDataManagerBackend*(void)> | 1114 base::Callback<ChromeURLDataManagerBackend*(void)> |
1112 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 1115 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
1113 return io_data_.GetChromeURLDataManagerBackendGetter(); | 1116 return io_data_.GetChromeURLDataManagerBackendGetter(); |
1114 } | 1117 } |
OLD | NEW |