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 GetPrefs(), GetExtensionService(), true); | 355 GetPrefs(), GetExtensionService(), true); |
356 } | 356 } |
357 return host_content_settings_map_.get(); | 357 return host_content_settings_map_.get(); |
358 } | 358 } |
359 | 359 |
360 content::GeolocationPermissionContext* | 360 content::GeolocationPermissionContext* |
361 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { | 361 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { |
362 return profile_->GetGeolocationPermissionContext(); | 362 return profile_->GetGeolocationPermissionContext(); |
363 } | 363 } |
364 | 364 |
365 content::SpeechInputPreferences* | 365 content::SpeechRecognitionPreferences* |
366 OffTheRecordProfileImpl::GetSpeechInputPreferences() { | 366 OffTheRecordProfileImpl::GetSpeechRecognitionPreferences() { |
367 return profile_->GetSpeechInputPreferences(); | 367 return profile_->GetSpeechRecognitionPreferences(); |
368 } | 368 } |
369 | 369 |
370 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { | 370 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { |
371 return profile_->GetUserStyleSheetWatcher(); | 371 return profile_->GetUserStyleSheetWatcher(); |
372 } | 372 } |
373 | 373 |
374 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() { | 374 bool OffTheRecordProfileImpl::DidLastSessionExitCleanly() { |
375 return profile_->DidLastSessionExitCleanly(); | 375 return profile_->DidLastSessionExitCleanly(); |
376 } | 376 } |
377 | 377 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 OffTheRecordProfileImpl* profile = NULL; | 540 OffTheRecordProfileImpl* profile = NULL; |
541 #if defined(OS_CHROMEOS) | 541 #if defined(OS_CHROMEOS) |
542 if (Profile::IsGuestSession()) | 542 if (Profile::IsGuestSession()) |
543 profile = new GuestSessionProfile(this); | 543 profile = new GuestSessionProfile(this); |
544 #endif | 544 #endif |
545 if (!profile) | 545 if (!profile) |
546 profile = new OffTheRecordProfileImpl(this); | 546 profile = new OffTheRecordProfileImpl(this); |
547 profile->Init(); | 547 profile->Init(); |
548 return profile; | 548 return profile; |
549 } | 549 } |
OLD | NEW |