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

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.cc

Issue 10161035: Adding UsbService and UsbDevice constructs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 #if !defined(OS_ANDROID)
403 UsbService* OffTheRecordProfileImpl::GetUsbService() {
404 return profile_->GetUsbService();
405 }
406 #endif // !defined(OS_ANDROID)
407
402 #if defined(OS_CHROMEOS) 408 #if defined(OS_CHROMEOS)
403 void OffTheRecordProfileImpl::SetupChromeOSEnterpriseExtensionObserver() { 409 void OffTheRecordProfileImpl::SetupChromeOSEnterpriseExtensionObserver() {
404 profile_->SetupChromeOSEnterpriseExtensionObserver(); 410 profile_->SetupChromeOSEnterpriseExtensionObserver();
405 } 411 }
406 412
407 void OffTheRecordProfileImpl::InitChromeOSPreferences() { 413 void OffTheRecordProfileImpl::InitChromeOSPreferences() {
408 // The incognito profile shouldn't have Chrome OS's preferences. 414 // The incognito profile shouldn't have Chrome OS's preferences.
409 // The preferences are associated with the regular user profile. 415 // The preferences are associated with the regular user profile.
410 } 416 }
411 #endif // defined(OS_CHROMEOS) 417 #endif // defined(OS_CHROMEOS)
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 if (!profile) 493 if (!profile)
488 profile = new OffTheRecordProfileImpl(this); 494 profile = new OffTheRecordProfileImpl(this);
489 profile->Init(); 495 profile->Init();
490 return profile; 496 return profile;
491 } 497 }
492 498
493 base::Callback<ChromeURLDataManagerBackend*(void)> 499 base::Callback<ChromeURLDataManagerBackend*(void)>
494 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const { 500 OffTheRecordProfileImpl::GetChromeURLDataManagerBackendGetter() const {
495 return io_data_.GetChromeURLDataManagerBackendGetter(); 501 return io_data_.GetChromeURLDataManagerBackendGetter();
496 } 502 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698