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

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

Issue 10693022: Add support for loading user cloud policy on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaked some comments after self-review. Created 8 years, 4 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 FaviconService* OffTheRecordProfileImpl::GetFaviconService( 233 FaviconService* OffTheRecordProfileImpl::GetFaviconService(
234 ServiceAccessType sat) { 234 ServiceAccessType sat) {
235 if (sat == EXPLICIT_ACCESS) 235 if (sat == EXPLICIT_ACCESS)
236 return profile_->GetFaviconService(sat); 236 return profile_->GetFaviconService(sat);
237 237
238 NOTREACHED() << "This profile is OffTheRecord"; 238 NOTREACHED() << "This profile is OffTheRecord";
239 return NULL; 239 return NULL;
240 } 240 }
241 241
242 policy::UserCloudPolicyManager*
243 OffTheRecordProfileImpl::GetUserCloudPolicyManager() {
Mattias Nissler (ping if slow) 2012/08/03 12:19:08 indent by 4 (as elsewhere in this file).
Andrew T Wilson (Slow) 2012/08/04 00:54:41 Done. Hmm, first time I've seen that style in chro
244 return profile_->GetUserCloudPolicyManager();
245 }
246
242 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() { 247 policy::PolicyService* OffTheRecordProfileImpl::GetPolicyService() {
243 return profile_->GetPolicyService(); 248 return profile_->GetPolicyService();
244 } 249 }
245 250
246 PrefService* OffTheRecordProfileImpl::GetPrefs() { 251 PrefService* OffTheRecordProfileImpl::GetPrefs() {
247 return prefs_; 252 return prefs_;
248 } 253 }
249 254
250 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { 255 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() {
251 return prefs_; 256 return prefs_;
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 if (!profile) 485 if (!profile)
481 profile = new OffTheRecordProfileImpl(this); 486 profile = new OffTheRecordProfileImpl(this);
482 profile->Init(); 487 profile->Init();
483 return profile; 488 return profile;
484 } 489 }
485 490
486 base::Callback<ChromeURLDataManagerBackend*(void)> 491 base::Callback<ChromeURLDataManagerBackend*(void)>
487 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 492 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
488 return io_data_.GetChromeURLDataManagerBackendGetter(); 493 return io_data_.GetChromeURLDataManagerBackendGetter();
489 } 494 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698