Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/profiles/profile_impl.cc

Issue 11183018: Refactor ChromeGeolocationPermissionContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates from comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/command_line.h" 8 #include "base/command_line.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/environment.h" 10 #include "base/environment.h"
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 if (!host_content_settings_map_.get()) { 820 if (!host_content_settings_map_.get()) {
821 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false); 821 host_content_settings_map_ = new HostContentSettingsMap(GetPrefs(), false);
822 } 822 }
823 return host_content_settings_map_.get(); 823 return host_content_settings_map_.get();
824 } 824 }
825 825
826 content::GeolocationPermissionContext* 826 content::GeolocationPermissionContext*
827 ProfileImpl::GetGeolocationPermissionContext() { 827 ProfileImpl::GetGeolocationPermissionContext() {
828 if (!geolocation_permission_context_.get()) { 828 if (!geolocation_permission_context_.get()) {
829 geolocation_permission_context_ = 829 geolocation_permission_context_ =
830 new ChromeGeolocationPermissionContext(this); 830 ChromeGeolocationPermissionContext::Create(this);
831 } 831 }
832 return geolocation_permission_context_.get(); 832 return geolocation_permission_context_.get();
833 } 833 }
834 834
835 content::SpeechRecognitionPreferences* 835 content::SpeechRecognitionPreferences*
836 ProfileImpl::GetSpeechRecognitionPreferences() { 836 ProfileImpl::GetSpeechRecognitionPreferences() {
837 #if defined(ENABLE_INPUT_SPEECH) 837 #if defined(ENABLE_INPUT_SPEECH)
838 return ChromeSpeechRecognitionPreferences::GetForProfile(this); 838 return ChromeSpeechRecognitionPreferences::GetForProfile(this);
839 #else 839 #else
840 return NULL; 840 return NULL;
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 if (!path.empty()) 1141 if (!path.empty())
1142 *cache_path = path; 1142 *cache_path = path;
1143 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) : 1143 *max_size = is_media_context ? prefs_->GetInteger(prefs::kMediaCacheSize) :
1144 prefs_->GetInteger(prefs::kDiskCacheSize); 1144 prefs_->GetInteger(prefs::kDiskCacheSize);
1145 } 1145 }
1146 1146
1147 base::Callback<ChromeURLDataManagerBackend*(void)> 1147 base::Callback<ChromeURLDataManagerBackend*(void)>
1148 ProfileImpl::GetChromeURLDataManagerBackendGetter() const { 1148 ProfileImpl::GetChromeURLDataManagerBackendGetter() const {
1149 return io_data_.GetChromeURLDataManagerBackendGetter(); 1149 return io_data_.GetChromeURLDataManagerBackendGetter();
1150 } 1150 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_infobar_queue_controller_unittest.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698