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

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

Issue 10546083: Convert ProtocolHandlerRegistry to be a ProfileKeyedService. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Respond to review comments. Fit and finish. Created 8 years, 6 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
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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 return NULL; 359 return NULL;
360 } 360 }
361 361
362 void OffTheRecordProfileImpl::MarkAsCleanShutdown() { 362 void OffTheRecordProfileImpl::MarkAsCleanShutdown() {
363 } 363 }
364 364
365 void OffTheRecordProfileImpl::InitPromoResources() { 365 void OffTheRecordProfileImpl::InitPromoResources() {
366 NOTREACHED(); 366 NOTREACHED();
367 } 367 }
368 368
369 void OffTheRecordProfileImpl::InitRegisteredProtocolHandlers() {
370 NOTREACHED();
371 }
372
373 FilePath OffTheRecordProfileImpl::last_selected_directory() { 369 FilePath OffTheRecordProfileImpl::last_selected_directory() {
374 const FilePath& directory = last_selected_directory_; 370 const FilePath& directory = last_selected_directory_;
375 if (directory.empty()) { 371 if (directory.empty()) {
376 return profile_->last_selected_directory(); 372 return profile_->last_selected_directory();
377 } 373 }
378 return directory; 374 return directory;
379 } 375 }
380 376
381 void OffTheRecordProfileImpl::set_last_selected_directory( 377 void OffTheRecordProfileImpl::set_last_selected_directory(
382 const FilePath& path) { 378 const FilePath& path) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 if (!profile) 472 if (!profile)
477 profile = new OffTheRecordProfileImpl(this); 473 profile = new OffTheRecordProfileImpl(this);
478 profile->Init(); 474 profile->Init();
479 return profile; 475 return profile;
480 } 476 }
481 477
482 base::Callback<ChromeURLDataManagerBackend*(void)> 478 base::Callback<ChromeURLDataManagerBackend*(void)>
483 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 479 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
484 return io_data_.GetChromeURLDataManagerBackendGetter(); 480 return io_data_.GetChromeURLDataManagerBackendGetter();
485 } 481 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698