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

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

Issue 7989001: Remove use of default request context and fix use of speech censor flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/command_line.h" 7 #include "base/command_line.h"
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/environment.h" 9 #include "base/environment.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 return host_zoom_map_.get(); 1137 return host_zoom_map_.get();
1138 } 1138 }
1139 1139
1140 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() { 1140 GeolocationPermissionContext* ProfileImpl::GetGeolocationPermissionContext() {
1141 if (!geolocation_permission_context_.get()) 1141 if (!geolocation_permission_context_.get())
1142 geolocation_permission_context_ = 1142 geolocation_permission_context_ =
1143 new ChromeGeolocationPermissionContext(this); 1143 new ChromeGeolocationPermissionContext(this);
1144 return geolocation_permission_context_.get(); 1144 return geolocation_permission_context_.get();
1145 } 1145 }
1146 1146
1147 bool ProfileImpl::GetSpeechCensorPref() {
1148 return GetPrefs()->GetBoolean(prefs::kSpeechInputCensorResults);
1149 }
1150
1147 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() { 1151 UserStyleSheetWatcher* ProfileImpl::GetUserStyleSheetWatcher() {
1148 if (!user_style_sheet_watcher_.get()) { 1152 if (!user_style_sheet_watcher_.get()) {
1149 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath()); 1153 user_style_sheet_watcher_ = new UserStyleSheetWatcher(GetPath());
1150 user_style_sheet_watcher_->Init(); 1154 user_style_sheet_watcher_->Init();
1151 } 1155 }
1152 return user_style_sheet_watcher_.get(); 1156 return user_style_sheet_watcher_.get();
1153 } 1157 }
1154 1158
1155 FindBarState* ProfileImpl::GetFindBarState() { 1159 FindBarState* ProfileImpl::GetFindBarState() {
1156 if (!find_bar_state_.get()) { 1160 if (!find_bar_state_.get()) {
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() { 1825 SpellCheckProfile* ProfileImpl::GetSpellCheckProfile() {
1822 if (!spellcheck_profile_.get()) 1826 if (!spellcheck_profile_.get())
1823 spellcheck_profile_.reset(new SpellCheckProfile()); 1827 spellcheck_profile_.reset(new SpellCheckProfile());
1824 return spellcheck_profile_.get(); 1828 return spellcheck_profile_.get();
1825 } 1829 }
1826 1830
1827 void ProfileImpl::SetDownloadManagerDelegate( 1831 void ProfileImpl::SetDownloadManagerDelegate(
1828 ChromeDownloadManagerDelegate* delegate) { 1832 ChromeDownloadManagerDelegate* delegate) {
1829 download_manager_delegate_ = delegate; 1833 download_manager_delegate_ = delegate;
1830 } 1834 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698