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

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

Issue 9834056: Moved WebDataService to ProfileKeyedService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload rebase Created 8 years, 8 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 245 }
246 246
247 AutocompleteClassifier* OffTheRecordProfileImpl::GetAutocompleteClassifier() { 247 AutocompleteClassifier* OffTheRecordProfileImpl::GetAutocompleteClassifier() {
248 return profile_->GetAutocompleteClassifier(); 248 return profile_->GetAutocompleteClassifier();
249 } 249 }
250 250
251 history::ShortcutsBackend* OffTheRecordProfileImpl::GetShortcutsBackend() { 251 history::ShortcutsBackend* OffTheRecordProfileImpl::GetShortcutsBackend() {
252 return NULL; 252 return NULL;
253 } 253 }
254 254
255 WebDataService* OffTheRecordProfileImpl::GetWebDataService(
256 ServiceAccessType sat) {
257 if (sat == EXPLICIT_ACCESS)
258 return profile_->GetWebDataService(sat);
259
260 NOTREACHED() << "This profile is OffTheRecord";
261 return NULL;
262 }
263
264 WebDataService* OffTheRecordProfileImpl::GetWebDataServiceWithoutCreating() {
265 return profile_->GetWebDataServiceWithoutCreating();
266 }
267
268 PrefService* OffTheRecordProfileImpl::GetPrefs() { 255 PrefService* OffTheRecordProfileImpl::GetPrefs() {
269 return prefs_; 256 return prefs_;
270 } 257 }
271 258
272 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { 259 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() {
273 return prefs_; 260 return prefs_;
274 } 261 }
275 262
276 DownloadManager* OffTheRecordProfileImpl::GetDownloadManager() { 263 DownloadManager* OffTheRecordProfileImpl::GetDownloadManager() {
277 return DownloadServiceFactory::GetForProfile(this)->GetDownloadManager(); 264 return DownloadServiceFactory::GetForProfile(this)->GetDownloadManager();
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 OffTheRecordProfileImpl* profile = NULL; 485 OffTheRecordProfileImpl* profile = NULL;
499 #if defined(OS_CHROMEOS) 486 #if defined(OS_CHROMEOS)
500 if (Profile::IsGuestSession()) 487 if (Profile::IsGuestSession())
501 profile = new GuestSessionProfile(this); 488 profile = new GuestSessionProfile(this);
502 #endif 489 #endif
503 if (!profile) 490 if (!profile)
504 profile = new OffTheRecordProfileImpl(this); 491 profile = new OffTheRecordProfileImpl(this);
505 profile->Init(); 492 profile->Init();
506 return profile; 493 return profile;
507 } 494 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/off_the_record_profile_impl.h ('k') | chrome/browser/profiles/profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698