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

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: Minor docu-changes. Created 8 years, 5 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 return NULL; 368 return NULL;
369 } 369 }
370 370
371 void OffTheRecordProfileImpl::MarkAsCleanShutdown() { 371 void OffTheRecordProfileImpl::MarkAsCleanShutdown() {
372 } 372 }
373 373
374 void OffTheRecordProfileImpl::InitPromoResources() { 374 void OffTheRecordProfileImpl::InitPromoResources() {
375 NOTREACHED(); 375 NOTREACHED();
376 } 376 }
377 377
378 void OffTheRecordProfileImpl::InitRegisteredProtocolHandlers() {
379 NOTREACHED();
380 }
381
382 FilePath OffTheRecordProfileImpl::last_selected_directory() { 378 FilePath OffTheRecordProfileImpl::last_selected_directory() {
383 const FilePath& directory = last_selected_directory_; 379 const FilePath& directory = last_selected_directory_;
384 if (directory.empty()) { 380 if (directory.empty()) {
385 return profile_->last_selected_directory(); 381 return profile_->last_selected_directory();
386 } 382 }
387 return directory; 383 return directory;
388 } 384 }
389 385
390 void OffTheRecordProfileImpl::set_last_selected_directory( 386 void OffTheRecordProfileImpl::set_last_selected_directory(
391 const FilePath& path) { 387 const FilePath& path) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 if (!profile) 481 if (!profile)
486 profile = new OffTheRecordProfileImpl(this); 482 profile = new OffTheRecordProfileImpl(this);
487 profile->Init(); 483 profile->Init();
488 return profile; 484 return profile;
489 } 485 }
490 486
491 base::Callback<ChromeURLDataManagerBackend*(void)> 487 base::Callback<ChromeURLDataManagerBackend*(void)>
492 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 488 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
493 return io_data_.GetChromeURLDataManagerBackendGetter(); 489 return io_data_.GetChromeURLDataManagerBackendGetter();
494 } 490 }
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