| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |