| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 return NULL; | 349 return NULL; |
| 350 } | 350 } |
| 351 | 351 |
| 352 history::TopSites* OffTheRecordProfileImpl::GetTopSites() { | 352 history::TopSites* OffTheRecordProfileImpl::GetTopSites() { |
| 353 return NULL; | 353 return NULL; |
| 354 } | 354 } |
| 355 | 355 |
| 356 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) { | 356 void OffTheRecordProfileImpl::SetExitType(ExitType exit_type) { |
| 357 } | 357 } |
| 358 | 358 |
| 359 void OffTheRecordProfileImpl::InitPromoResources() { | |
| 360 NOTREACHED(); | |
| 361 } | |
| 362 | |
| 363 FilePath OffTheRecordProfileImpl::last_selected_directory() { | 359 FilePath OffTheRecordProfileImpl::last_selected_directory() { |
| 364 const FilePath& directory = last_selected_directory_; | 360 const FilePath& directory = last_selected_directory_; |
| 365 if (directory.empty()) { | 361 if (directory.empty()) { |
| 366 return profile_->last_selected_directory(); | 362 return profile_->last_selected_directory(); |
| 367 } | 363 } |
| 368 return directory; | 364 return directory; |
| 369 } | 365 } |
| 370 | 366 |
| 371 void OffTheRecordProfileImpl::set_last_selected_directory( | 367 void OffTheRecordProfileImpl::set_last_selected_directory( |
| 372 const FilePath& path) { | 368 const FilePath& path) { |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 if (!profile) | 474 if (!profile) |
| 479 profile = new OffTheRecordProfileImpl(this); | 475 profile = new OffTheRecordProfileImpl(this); |
| 480 profile->Init(); | 476 profile->Init(); |
| 481 return profile; | 477 return profile; |
| 482 } | 478 } |
| 483 | 479 |
| 484 base::Callback<ChromeURLDataManagerBackend*(void)> | 480 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 485 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 481 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 486 return io_data_.GetChromeURLDataManagerBackendGetter(); | 482 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 487 } | 483 } |
| OLD | NEW |