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

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: Reduce differences between orig and updated test. Trying to figure out why tests fail on try server… 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 return NULL; 355 return NULL;
356 } 356 }
357 357
358 void OffTheRecordProfileImpl::MarkAsCleanShutdown() { 358 void OffTheRecordProfileImpl::MarkAsCleanShutdown() {
359 } 359 }
360 360
361 void OffTheRecordProfileImpl::InitPromoResources() { 361 void OffTheRecordProfileImpl::InitPromoResources() {
362 NOTREACHED(); 362 NOTREACHED();
363 } 363 }
364 364
365 void OffTheRecordProfileImpl::InitRegisteredProtocolHandlers() {
366 NOTREACHED();
367 }
368
369 FilePath OffTheRecordProfileImpl::last_selected_directory() { 365 FilePath OffTheRecordProfileImpl::last_selected_directory() {
370 const FilePath& directory = last_selected_directory_; 366 const FilePath& directory = last_selected_directory_;
371 if (directory.empty()) { 367 if (directory.empty()) {
372 return profile_->last_selected_directory(); 368 return profile_->last_selected_directory();
373 } 369 }
374 return directory; 370 return directory;
375 } 371 }
376 372
377 void OffTheRecordProfileImpl::set_last_selected_directory( 373 void OffTheRecordProfileImpl::set_last_selected_directory(
378 const FilePath& path) { 374 const FilePath& path) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 if (!profile) 468 if (!profile)
473 profile = new OffTheRecordProfileImpl(this); 469 profile = new OffTheRecordProfileImpl(this);
474 profile->Init(); 470 profile->Init();
475 return profile; 471 return profile;
476 } 472 }
477 473
478 base::Callback<ChromeURLDataManagerBackend*(void)> 474 base::Callback<ChromeURLDataManagerBackend*(void)>
479 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 475 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
480 return io_data_.GetChromeURLDataManagerBackendGetter(); 476 return io_data_.GetChromeURLDataManagerBackendGetter();
481 } 477 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698