Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 Source<HostZoomMap>(profile_->GetHostZoomMap())); | 418 Source<HostZoomMap>(profile_->GetHostZoomMap())); |
| 419 } | 419 } |
| 420 return host_zoom_map_.get(); | 420 return host_zoom_map_.get(); |
| 421 } | 421 } |
| 422 | 422 |
| 423 GeolocationPermissionContext* | 423 GeolocationPermissionContext* |
| 424 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { | 424 OffTheRecordProfileImpl::GetGeolocationPermissionContext() { |
| 425 return profile_->GetGeolocationPermissionContext(); | 425 return profile_->GetGeolocationPermissionContext(); |
| 426 } | 426 } |
| 427 | 427 |
| 428 bool OffTheRecordProfileImpl::GetSpeechCensorPref() { | |
| 429 return profile_->GetPrefs()->GetBoolean(prefs::kSpeechInputCensorResults); | |
|
Satish
2011/09/23 09:44:57
perhaps simpler to do profile_->GetSpeechCensorPre
allanwoj
2011/09/23 14:12:44
Done.
| |
| 430 } | |
| 431 | |
| 428 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { | 432 UserStyleSheetWatcher* OffTheRecordProfileImpl::GetUserStyleSheetWatcher() { |
| 429 return profile_->GetUserStyleSheetWatcher(); | 433 return profile_->GetUserStyleSheetWatcher(); |
| 430 } | 434 } |
| 431 | 435 |
| 432 FindBarState* OffTheRecordProfileImpl::GetFindBarState() { | 436 FindBarState* OffTheRecordProfileImpl::GetFindBarState() { |
| 433 if (!find_bar_state_.get()) | 437 if (!find_bar_state_.get()) |
| 434 find_bar_state_.reset(new FindBarState()); | 438 find_bar_state_.reset(new FindBarState()); |
| 435 return find_bar_state_.get(); | 439 return find_bar_state_.get(); |
| 436 } | 440 } |
| 437 | 441 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 689 OffTheRecordProfileImpl* profile = NULL; | 693 OffTheRecordProfileImpl* profile = NULL; |
| 690 #if defined(OS_CHROMEOS) | 694 #if defined(OS_CHROMEOS) |
| 691 if (Profile::IsGuestSession()) | 695 if (Profile::IsGuestSession()) |
| 692 profile = new GuestSessionProfile(this); | 696 profile = new GuestSessionProfile(this); |
| 693 #endif | 697 #endif |
| 694 if (!profile) | 698 if (!profile) |
| 695 profile = new OffTheRecordProfileImpl(this); | 699 profile = new OffTheRecordProfileImpl(this); |
| 696 profile->Init(); | 700 profile->Init(); |
| 697 return profile; | 701 return profile; |
| 698 } | 702 } |
| OLD | NEW |