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

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

Issue 11570009: Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head again, previous had unrelated broken win_rel test. Created 7 years, 12 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/off_the_record_profile_impl.h" 5 #include "chrome/browser/profiles/off_the_record_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/file_path.h" 10 #include "base/file_path.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 policy::ManagedModePolicyProvider* 236 policy::ManagedModePolicyProvider*
237 OffTheRecordProfileImpl::GetManagedModePolicyProvider() { 237 OffTheRecordProfileImpl::GetManagedModePolicyProvider() {
238 return profile_->GetManagedModePolicyProvider(); 238 return profile_->GetManagedModePolicyProvider();
239 } 239 }
240 240
241 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { 241 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() {
242 return profile_->GetPolicyService(); 242 return profile_->GetPolicyService();
243 } 243 }
244 244
245 PrefService* OffTheRecordProfileImpl::GetPrefs() { 245 PrefServiceSyncable* OffTheRecordProfileImpl::GetPrefs() {
246 return prefs_; 246 return prefs_;
247 } 247 }
248 248
249 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { 249 PrefServiceSyncable* OffTheRecordProfileImpl::GetOffTheRecordPrefs() {
250 return prefs_; 250 return prefs_;
251 } 251 }
252 252
253 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() { 253 DownloadManagerDelegate* OffTheRecordProfileImpl::GetDownloadManagerDelegate() {
254 return DownloadServiceFactory::GetForProfile(this)-> 254 return DownloadServiceFactory::GetForProfile(this)->
255 GetDownloadManagerDelegate(); 255 GetDownloadManagerDelegate();
256 } 256 }
257 257
258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() { 258 net::URLRequestContextGetter* OffTheRecordProfileImpl::GetRequestContext() {
259 return io_data_.GetMainRequestContextGetter(); 259 return io_data_.GetMainRequestContextGetter();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 if (!profile) 482 if (!profile)
483 profile = new OffTheRecordProfileImpl(this); 483 profile = new OffTheRecordProfileImpl(this);
484 profile->Init(); 484 profile->Init();
485 return profile; 485 return profile;
486 } 486 }
487 487
488 base::Callback<ChromeURLDataManagerBackend*(void)> 488 base::Callback<ChromeURLDataManagerBackend*(void)>
489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
490 return io_data_.GetChromeURLDataManagerBackendGetter(); 490 return io_data_.GetChromeURLDataManagerBackendGetter();
491 } 491 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/off_the_record_profile_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698