| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 void OffTheRecordProfileImpl::set_last_selected_directory( | 392 void OffTheRecordProfileImpl::set_last_selected_directory( |
| 393 const FilePath& path) { | 393 const FilePath& path) { |
| 394 last_selected_directory_ = path; | 394 last_selected_directory_ = path; |
| 395 } | 395 } |
| 396 | 396 |
| 397 bool OffTheRecordProfileImpl::WasCreatedByVersionOrLater( | 397 bool OffTheRecordProfileImpl::WasCreatedByVersionOrLater( |
| 398 const std::string& version) { | 398 const std::string& version) { |
| 399 return profile_->WasCreatedByVersionOrLater(version); | 399 return profile_->WasCreatedByVersionOrLater(version); |
| 400 } | 400 } |
| 401 | 401 |
| 402 UsbService* OffTheRecordProfileImpl::GetUsbService() { |
| 403 return profile_->GetUsbService(); |
| 404 } |
| 405 |
| 402 #if defined(OS_CHROMEOS) | 406 #if defined(OS_CHROMEOS) |
| 403 void OffTheRecordProfileImpl::SetupChromeOSEnterpriseExtensionObserver() { | 407 void OffTheRecordProfileImpl::SetupChromeOSEnterpriseExtensionObserver() { |
| 404 profile_->SetupChromeOSEnterpriseExtensionObserver(); | 408 profile_->SetupChromeOSEnterpriseExtensionObserver(); |
| 405 } | 409 } |
| 406 | 410 |
| 407 void OffTheRecordProfileImpl::InitChromeOSPreferences() { | 411 void OffTheRecordProfileImpl::InitChromeOSPreferences() { |
| 408 // The incognito profile shouldn't have Chrome OS's preferences. | 412 // The incognito profile shouldn't have Chrome OS's preferences. |
| 409 // The preferences are associated with the regular user profile. | 413 // The preferences are associated with the regular user profile. |
| 410 } | 414 } |
| 411 #endif // defined(OS_CHROMEOS) | 415 #endif // defined(OS_CHROMEOS) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 if (!profile) | 491 if (!profile) |
| 488 profile = new OffTheRecordProfileImpl(this); | 492 profile = new OffTheRecordProfileImpl(this); |
| 489 profile->Init(); | 493 profile->Init(); |
| 490 return profile; | 494 return profile; |
| 491 } | 495 } |
| 492 | 496 |
| 493 base::Callback<ChromeURLDataManagerBackend*(void)> | 497 base::Callback<ChromeURLDataManagerBackend*(void)> |
| 494 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { | 498 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { |
| 495 return io_data_.GetChromeURLDataManagerBackendGetter(); | 499 return io_data_.GetChromeURLDataManagerBackendGetter(); |
| 496 } | 500 } |
| OLD | NEW |