| 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 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1064 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); | 1064 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); |
| 1065 } | 1065 } |
| 1066 return host_content_settings_map_.get(); | 1066 return host_content_settings_map_.get(); |
| 1067 } | 1067 } |
| 1068 | 1068 |
| 1069 content::GeolocationPermissionContext* | 1069 content::GeolocationPermissionContext* |
| 1070 ProfileImpl::GetGeolocationPermissionContext() { | 1070 ProfileImpl::GetGeolocationPermissionContext() { |
| 1071 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); | 1071 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
| 1072 } | 1072 } |
| 1073 | 1073 |
| 1074 content::BrowserPluginGuestManagerDelegate* | 1074 content::BrowserPluginGuestManager* ProfileImpl::GetGuestManager() { |
| 1075 ProfileImpl::GetGuestManagerDelegate() { | |
| 1076 return GuestViewManager::FromBrowserContext(this); | 1075 return GuestViewManager::FromBrowserContext(this); |
| 1077 } | 1076 } |
| 1078 | 1077 |
| 1079 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { | 1078 DownloadManagerDelegate* ProfileImpl::GetDownloadManagerDelegate() { |
| 1080 return DownloadServiceFactory::GetForBrowserContext(this)-> | 1079 return DownloadServiceFactory::GetForBrowserContext(this)-> |
| 1081 GetDownloadManagerDelegate(); | 1080 GetDownloadManagerDelegate(); |
| 1082 } | 1081 } |
| 1083 | 1082 |
| 1084 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { | 1083 quota::SpecialStoragePolicy* ProfileImpl::GetSpecialStoragePolicy() { |
| 1085 return GetExtensionSpecialStoragePolicy(); | 1084 return GetExtensionSpecialStoragePolicy(); |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1351 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { | 1350 PrefProxyConfigTracker* ProfileImpl::CreateProxyConfigTracker() { |
| 1352 #if defined(OS_CHROMEOS) | 1351 #if defined(OS_CHROMEOS) |
| 1353 if (chromeos::ProfileHelper::IsSigninProfile(this)) { | 1352 if (chromeos::ProfileHelper::IsSigninProfile(this)) { |
| 1354 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( | 1353 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfLocalState( |
| 1355 g_browser_process->local_state()); | 1354 g_browser_process->local_state()); |
| 1356 } | 1355 } |
| 1357 #endif // defined(OS_CHROMEOS) | 1356 #endif // defined(OS_CHROMEOS) |
| 1358 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( | 1357 return ProxyServiceFactory::CreatePrefProxyConfigTrackerOfProfile( |
| 1359 GetPrefs(), g_browser_process->local_state()); | 1358 GetPrefs(), g_browser_process->local_state()); |
| 1360 } | 1359 } |
| OLD | NEW |