| 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/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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 713 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { | 713 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { |
| 714 if (!speech_input_preferences_.get()) | 714 if (!speech_input_preferences_.get()) |
| 715 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); | 715 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); |
| 716 return speech_input_preferences_.get(); | 716 return speech_input_preferences_.get(); |
| 717 } | 717 } |
| 718 | 718 |
| 719 HostZoomMap* TestingProfile::GetHostZoomMap() { | 719 HostZoomMap* TestingProfile::GetHostZoomMap() { |
| 720 return NULL; | 720 return NULL; |
| 721 } | 721 } |
| 722 | 722 |
| 723 bool TestingProfile::HasProfileSyncService() const { | 723 bool TestingProfile::HasProfileSyncService() { |
| 724 return (profile_sync_service_.get() != NULL); | 724 return (profile_sync_service_.get() != NULL); |
| 725 } | 725 } |
| 726 | 726 |
| 727 std::wstring TestingProfile::GetName() { | 727 std::wstring TestingProfile::GetName() { |
| 728 return std::wstring(); | 728 return std::wstring(); |
| 729 } | 729 } |
| 730 | 730 |
| 731 std::wstring TestingProfile::GetID() { | 731 std::wstring TestingProfile::GetID() { |
| 732 return id_; | 732 return id_; |
| 733 } | 733 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 868 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 868 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 869 return GetExtensionSpecialStoragePolicy(); | 869 return GetExtensionSpecialStoragePolicy(); |
| 870 } | 870 } |
| 871 | 871 |
| 872 void TestingProfile::DestroyWebDataService() { | 872 void TestingProfile::DestroyWebDataService() { |
| 873 if (!web_data_service_.get()) | 873 if (!web_data_service_.get()) |
| 874 return; | 874 return; |
| 875 | 875 |
| 876 web_data_service_->Shutdown(); | 876 web_data_service_->Shutdown(); |
| 877 } | 877 } |
| OLD | NEW |