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 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 #else | 1137 #else |
1138 return NULL; | 1138 return NULL; |
1139 #endif | 1139 #endif |
1140 } | 1140 } |
1141 | 1141 |
1142 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1142 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
1143 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1143 return DownloadServiceFactory::GetForBrowserContext(this)-> |
1144 GetDownloadManagerDelegate(); | 1144 GetDownloadManagerDelegate(); |
1145 } | 1145 } |
1146 | 1146 |
1147 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1147 storage::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
1148 #if defined(ENABLE_EXTENSIONS) | 1148 #if defined(ENABLE_EXTENSIONS) |
1149 return GetExtensionSpecialStoragePolicy(); | 1149 return GetExtensionSpecialStoragePolicy(); |
1150 #else | 1150 #else |
1151 return NULL; | 1151 return NULL; |
1152 #endif | 1152 #endif |
1153 } | 1153 } |
1154 | 1154 |
1155 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { | 1155 content::PushMessagingService* ProfileImpl::GetPushMessagingService() { |
1156 return gcm::GCMProfileServiceFactory::GetForProfile( | 1156 return gcm::GCMProfileServiceFactory::GetForProfile( |
1157 this)->push_messaging_service(); | 1157 this)->push_messaging_service(); |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1453 ProfileImpl::CreateDomainReliabilityMonitor() { | 1453 ProfileImpl::CreateDomainReliabilityMonitor() { |
1454 domain_reliability::DomainReliabilityService* service = | 1454 domain_reliability::DomainReliabilityService* service = |
1455 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> | 1455 domain_reliability::DomainReliabilityServiceFactory::GetInstance()-> |
1456 GetForBrowserContext(this); | 1456 GetForBrowserContext(this); |
1457 if (!service) | 1457 if (!service) |
1458 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); | 1458 return scoped_ptr<domain_reliability::DomainReliabilityMonitor>(); |
1459 | 1459 |
1460 return service->CreateMonitor( | 1460 return service->CreateMonitor( |
1461 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); | 1461 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
1462 } | 1462 } |
OLD | NEW |