| 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 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |