| 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/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 633 | 633 |
| 634 GeolocationPermissionContext* | 634 GeolocationPermissionContext* |
| 635 TestingProfile::GetGeolocationPermissionContext() { | 635 TestingProfile::GetGeolocationPermissionContext() { |
| 636 if (!geolocation_permission_context_.get()) { | 636 if (!geolocation_permission_context_.get()) { |
| 637 geolocation_permission_context_ = | 637 geolocation_permission_context_ = |
| 638 new ChromeGeolocationPermissionContext(this); | 638 new ChromeGeolocationPermissionContext(this); |
| 639 } | 639 } |
| 640 return geolocation_permission_context_.get(); | 640 return geolocation_permission_context_.get(); |
| 641 } | 641 } |
| 642 | 642 |
| 643 bool TestingProfile::GetSpeechCensorPref() { |
| 644 return true; |
| 645 } |
| 646 |
| 643 HostZoomMap* TestingProfile::GetHostZoomMap() { | 647 HostZoomMap* TestingProfile::GetHostZoomMap() { |
| 644 return NULL; | 648 return NULL; |
| 645 } | 649 } |
| 646 | 650 |
| 647 bool TestingProfile::HasProfileSyncService() const { | 651 bool TestingProfile::HasProfileSyncService() const { |
| 648 return (profile_sync_service_.get() != NULL); | 652 return (profile_sync_service_.get() != NULL); |
| 649 } | 653 } |
| 650 | 654 |
| 651 std::wstring TestingProfile::GetName() { | 655 std::wstring TestingProfile::GetName() { |
| 652 return std::wstring(); | 656 return std::wstring(); |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 801 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 798 return GetExtensionSpecialStoragePolicy(); | 802 return GetExtensionSpecialStoragePolicy(); |
| 799 } | 803 } |
| 800 | 804 |
| 801 void TestingProfile::DestroyWebDataService() { | 805 void TestingProfile::DestroyWebDataService() { |
| 802 if (!web_data_service_.get()) | 806 if (!web_data_service_.get()) |
| 803 return; | 807 return; |
| 804 | 808 |
| 805 web_data_service_->Shutdown(); | 809 web_data_service_->Shutdown(); |
| 806 } | 810 } |
| OLD | NEW |