| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 #include "components/sync_preferences/pref_service_syncable.h" | 105 #include "components/sync_preferences/pref_service_syncable.h" |
| 106 #include "components/url_formatter/url_fixer.h" | 106 #include "components/url_formatter/url_fixer.h" |
| 107 #include "components/user_prefs/user_prefs.h" | 107 #include "components/user_prefs/user_prefs.h" |
| 108 #include "components/zoom/zoom_event_manager.h" | 108 #include "components/zoom/zoom_event_manager.h" |
| 109 #include "content/public/browser/browser_thread.h" | 109 #include "content/public/browser/browser_thread.h" |
| 110 #include "content/public/browser/dom_storage_context.h" | 110 #include "content/public/browser/dom_storage_context.h" |
| 111 #include "content/public/browser/notification_service.h" | 111 #include "content/public/browser/notification_service.h" |
| 112 #include "content/public/browser/render_process_host.h" | 112 #include "content/public/browser/render_process_host.h" |
| 113 #include "content/public/browser/storage_partition.h" | 113 #include "content/public/browser/storage_partition.h" |
| 114 #include "content/public/browser/url_data_source.h" | 114 #include "content/public/browser/url_data_source.h" |
| 115 #include "content/public/browser/user_metrics.h" | |
| 116 #include "content/public/common/content_constants.h" | 115 #include "content/public/common/content_constants.h" |
| 117 #include "content/public/common/page_zoom.h" | 116 #include "content/public/common/page_zoom.h" |
| 118 #include "extensions/features/features.h" | 117 #include "extensions/features/features.h" |
| 119 #include "ppapi/features/features.h" | 118 #include "ppapi/features/features.h" |
| 120 #include "printing/features/features.h" | 119 #include "printing/features/features.h" |
| 121 #include "services/identity/identity_service.h" | 120 #include "services/identity/identity_service.h" |
| 122 #include "services/identity/public/interfaces/constants.mojom.h" | 121 #include "services/identity/public/interfaces/constants.mojom.h" |
| 123 #include "services/preferences/public/cpp/pref_service_main.h" | 122 #include "services/preferences/public/cpp/pref_service_main.h" |
| 124 #include "services/preferences/public/interfaces/preferences.mojom.h" | 123 #include "services/preferences/public/interfaces/preferences.mojom.h" |
| 125 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom.h" | 124 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 159 |
| 161 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) | 160 #if BUILDFLAG(ENABLE_SUPERVISED_USERS) |
| 162 #include "chrome/browser/content_settings/content_settings_supervised_provider.h
" | 161 #include "chrome/browser/content_settings/content_settings_supervised_provider.h
" |
| 163 #include "chrome/browser/supervised_user/supervised_user_constants.h" | 162 #include "chrome/browser/supervised_user/supervised_user_constants.h" |
| 164 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" | 163 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" |
| 165 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" | 164 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" |
| 166 #endif | 165 #endif |
| 167 | 166 |
| 168 using base::Time; | 167 using base::Time; |
| 169 using base::TimeDelta; | 168 using base::TimeDelta; |
| 170 using base::UserMetricsAction; | |
| 171 using bookmarks::BookmarkModel; | 169 using bookmarks::BookmarkModel; |
| 172 using content::BrowserThread; | 170 using content::BrowserThread; |
| 173 using content::DownloadManagerDelegate; | 171 using content::DownloadManagerDelegate; |
| 174 | 172 |
| 175 namespace { | 173 namespace { |
| 176 | 174 |
| 177 #if BUILDFLAG(ENABLE_SESSION_SERVICE) | 175 #if BUILDFLAG(ENABLE_SESSION_SERVICE) |
| 178 // Delay, in milliseconds, before we explicitly create the SessionService. | 176 // Delay, in milliseconds, before we explicitly create the SessionService. |
| 179 const int kCreateSessionServiceDelayMS = 500; | 177 const int kCreateSessionServiceDelayMS = 500; |
| 180 #endif | 178 #endif |
| (...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1346 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1344 return std::unique_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1347 | 1345 |
| 1348 return service->CreateMonitor( | 1346 return service->CreateMonitor( |
| 1349 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); | 1347 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO)); |
| 1350 } | 1348 } |
| 1351 | 1349 |
| 1352 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { | 1350 std::unique_ptr<service_manager::Service> ProfileImpl::CreateIdentityService() { |
| 1353 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); | 1351 SigninManagerBase* signin_manager = SigninManagerFactory::GetForProfile(this); |
| 1354 return base::MakeUnique<identity::IdentityService>(signin_manager); | 1352 return base::MakeUnique<identity::IdentityService>(signin_manager); |
| 1355 } | 1353 } |
| OLD | NEW |