| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 host_content_settings_map_->RegisterProvider( | 1046 host_content_settings_map_->RegisterProvider( |
| 1047 HostContentSettingsMap::SUPERVISED_PROVIDER, | 1047 HostContentSettingsMap::SUPERVISED_PROVIDER, |
| 1048 supervised_provider.Pass()); | 1048 supervised_provider.Pass()); |
| 1049 #endif | 1049 #endif |
| 1050 } | 1050 } |
| 1051 return host_content_settings_map_.get(); | 1051 return host_content_settings_map_.get(); |
| 1052 } | 1052 } |
| 1053 | 1053 |
| 1054 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { | 1054 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { |
| 1055 #if defined(ENABLE_EXTENSIONS) | 1055 #if defined(ENABLE_EXTENSIONS) |
| 1056 return extensions::GuestViewManager::FromBrowserContextIfAvailable(this); | 1056 return extensions::GuestViewManager::FromBrowserContext(this); |
| 1057 #else | 1057 #else |
| 1058 return NULL; | 1058 return NULL; |
| 1059 #endif | 1059 #endif |
| 1060 } | 1060 } |
| 1061 | 1061 |
| 1062 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1062 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
| 1063 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1063 return DownloadServiceFactory::GetForBrowserContext(this)-> |
| 1064 GetDownloadManagerDelegate(); | 1064 GetDownloadManagerDelegate(); |
| 1065 } | 1065 } |
| 1066 | 1066 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1335 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { | 1335 ProfileImpl::CreateDomainReliabilityMonitor(PrefService* local_state) { |
| 1336 domain_reliability::DomainReliabilityService* service = | 1336 domain_reliability::DomainReliabilityService* service = |
| 1337 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1337 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
| 1338 GetForBrowserContext(this); | 1338 GetForBrowserContext(this); |
| 1339 if (!service) | 1339 if (!service) |
| 1340 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1340 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
| 1341 | 1341 |
| 1342 return service->CreateMonitor( | 1342 return service->CreateMonitor( |
| 1343 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1343 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
| 1344 } | 1344 } |
| OLD | NEW |