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

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: removed unchanged file Created 8 years, 9 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 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 257 }
258 258
259 AutocompleteClassifier* OffTheRecordProfileImpl::GetAutocompleteClassifier() { 259 AutocompleteClassifier* OffTheRecordProfileImpl::GetAutocompleteClassifier() {
260 return profile_->GetAutocompleteClassifier(); 260 return profile_->GetAutocompleteClassifier();
261 } 261 }
262 262
263 history::ShortcutsBackend* OffTheRecordProfileImpl::GetShortcutsBackend() { 263 history::ShortcutsBackend* OffTheRecordProfileImpl::GetShortcutsBackend() {
264 return NULL; 264 return NULL;
265 } 265 }
266 266
267 WebDataService* OffTheRecordProfileImpl::GetWebDataService(
268 ServiceAccessType sat) {
269 if (sat == EXPLICIT_ACCESS)
270 return profile_->GetWebDataService(sat);
271
272 NOTREACHED() << "This profile is OffTheRecord";
273 return NULL;
274 }
275
276 WebDataService* OffTheRecordProfileImpl::GetWebDataServiceWithoutCreating() {
277 return profile_->GetWebDataServiceWithoutCreating();
278 }
279
280 PrefService* OffTheRecordProfileImpl::GetPrefs() { 267 PrefService* OffTheRecordProfileImpl::GetPrefs() {
281 return prefs_; 268 return prefs_;
282 } 269 }
283 270
284 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() { 271 PrefService* OffTheRecordProfileImpl::GetOffTheRecordPrefs() {
285 return prefs_; 272 return prefs_;
286 } 273 }
287 274
288 TemplateURLFetcher* OffTheRecordProfileImpl::GetTemplateURLFetcher() { 275 TemplateURLFetcher* OffTheRecordProfileImpl::GetTemplateURLFetcher() {
289 return profile_->GetTemplateURLFetcher(); 276 return profile_->GetTemplateURLFetcher();
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 OffTheRecordProfileImpl* profile = NULL; 513 OffTheRecordProfileImpl* profile = NULL;
527 #if defined(OS_CHROMEOS) 514 #if defined(OS_CHROMEOS)
528 if (Profile::IsGuestSession()) 515 if (Profile::IsGuestSession())
529 profile = new GuestSessionProfile(this); 516 profile = new GuestSessionProfile(this);
530 #endif 517 #endif
531 if (!profile) 518 if (!profile)
532 profile = new OffTheRecordProfileImpl(this); 519 profile = new OffTheRecordProfileImpl(this);
533 profile->Init(); 520 profile->Init();
534 return profile; 521 return profile;
535 } 522 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698