Chromium Code Reviews| 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/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 849 } | 849 } |
| 850 | 850 |
| 851 HostContentSettingsMap* ProfileImpl::GetHostContentSettingsMap() { | 851 HostContentSettingsMap* ProfileImpl::GetHostContentSettingsMap() { |
| 852 if (!host_content_settings_map_.get()) { | 852 if (!host_content_settings_map_.get()) { |
| 853 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); | 853 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); |
| 854 } | 854 } |
| 855 return host_content_settings_map_.get(); | 855 return host_content_settings_map_.get(); |
| 856 } | 856 } |
| 857 | 857 |
| 858 content::GeolocationPermissionContext* | 858 content::GeolocationPermissionContext* |
| 859 ProfileImpl::GetGeolocationPermissionContext() { | 859 ProfileImpl::GetGeolocationPermissionContext() { |
|
rpetterson
2012/12/18 21:22:17
Do you have any plans to eventually remove this fu
John Knottenbelt
2012/12/19 16:01:09
Not sure yet. One problem is that RenderProcessHos
rpetterson
2012/12/19 22:22:44
There are still a couple services that are in that
| |
| 860 if (!geolocation_permission_context_.get()) { | 860 return ChromeGeolocationPermissionContextFactory::GetForProfile(this); |
| 861 geolocation_permission_context_ = | |
| 862 ChromeGeolocationPermissionContextFactory::Create(this); | |
| 863 } | |
| 864 return geolocation_permission_context_.get(); | |
| 865 } | 861 } |
| 866 | 862 |
| 867 content::SpeechRecognitionPreferences* | 863 content::SpeechRecognitionPreferences* |
| 868 ProfileImpl::GetSpeechRecognitionPreferences() { | 864 ProfileImpl::GetSpeechRecognitionPreferences() { |
| 869 #if defined(ENABLE_INPUT_SPEECH) | 865 #if defined(ENABLE_INPUT_SPEECH) |
| 870 return ChromeSpeechRecognitionPreferences::GetForProfile(this); | 866 return ChromeSpeechRecognitionPreferences::GetForProfile(this); |
| 871 #else | 867 #else |
| 872 return NULL; | 868 return NULL; |
| 873 #endif | 869 #endif |
| 874 } | 870 } |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1153 if (!path.empty()) | 1149 if (!path.empty()) |
| 1154 *cache_path = path; | 1150 *cache_path = path; |
| 1155 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : | 1151 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : |
| 1156 prefs_->GetInteger(prefs::kDiskCacheSize); | 1152 prefs_->GetInteger(prefs::kDiskCacheSize); |
| 1157 } | 1153 } |
| 1158 | 1154 |
| 1159 base::Callback<ChromeURLDataManagerBackend*(void)> | 1155 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 1160 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 1156 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 1161 return io_data_.GetChromeURLDataManagerBackendGetter(); | 1157 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 1162 } | 1158 } |
| OLD | NEW |