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

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

Issue 11689004: Move PromoResourceService from Profile to BrowserProcessImpl/local_state(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang Created 7 years, 11 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 return NULL; 353 return NULL;
354 } 354 }
355 355
356 history::TopSites* OffTheRecordProfileImpl::GetTopSites() { 356 history::TopSites* OffTheRecordProfileImpl::GetTopSites() {
357 return NULL; 357 return NULL;
358 } 358 }
359 359
360 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) { 360 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) {
361 } 361 }
362 362
363 void OffTheRecordProfileImpl::InitPromoResources() {
364 NOTREACHED();
365 }
366
367 FilePath OffTheRecordProfileImpl::last_selected_directory() { 363 FilePath OffTheRecordProfileImpl::last_selected_directory() {
368 const FilePath& directory = last_selected_directory_; 364 const FilePath& directory = last_selected_directory_;
369 if (directory.empty()) { 365 if (directory.empty()) {
370 return profile_->last_selected_directory(); 366 return profile_->last_selected_directory();
371 } 367 }
372 return directory; 368 return directory;
373 } 369 }
374 370
375 void OffTheRecordProfileImpl::set_last_selected_directory( 371 void OffTheRecordProfileImpl::set_last_selected_directory(
376 const FilePath& path) { 372 const FilePath& path) {
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 if (!profile) 478 if (!profile)
483 profile = new OffTheRecordProfileImpl(this); 479 profile = new OffTheRecordProfileImpl(this);
484 profile->Init(); 480 profile->Init();
485 return profile; 481 return profile;
486 } 482 }
487 483
488 base::Callback<ChromeURLDataManagerBackend*(void)> 484 base::Callback<ChromeURLDataManagerBackend*(void)>
489 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 485 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
490 return io_data_.GetChromeURLDataManagerBackendGetter(); 486 return io_data_.GetChromeURLDataManagerBackendGetter();
491 } 487 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698