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

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

Issue 2860683002: WIP: Pref service: use the incognito support from Chrome
Patch Set: Rebase Created 3 years, 7 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
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.h" 5 #include "chrome/browser/profiles/profile.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 239 }
240 } 240 }
241 241
242 bool ProfileCompare::operator()(Profile* a, Profile* b) const { 242 bool ProfileCompare::operator()(Profile* a, Profile* b) const {
243 DCHECK(a && b); 243 DCHECK(a && b);
244 if (a->IsSameProfile(b)) 244 if (a->IsSameProfile(b))
245 return false; 245 return false;
246 return a->GetOriginalProfile() < b->GetOriginalProfile(); 246 return a->GetOriginalProfile() < b->GetOriginalProfile();
247 } 247 }
248 248
249 sync_preferences::PrefServiceSyncable* Profile::CreateOffTheRecordPrefs(
250 service_manager::Connector* otr_connector) {
251 // TODO(tibell): How do we square this circle?
252 return nullptr;
253 };
254
249 double Profile::GetDefaultZoomLevelForProfile() { 255 double Profile::GetDefaultZoomLevelForProfile() {
250 return GetDefaultStoragePartition(this) 256 return GetDefaultStoragePartition(this)
251 ->GetHostZoomMap() 257 ->GetHostZoomMap()
252 ->GetDefaultZoomLevel(); 258 ->GetDefaultZoomLevel();
253 } 259 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.h ('k') | chrome/browser/profiles/profile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698