| 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { | 712 SpeechInputPreferences* TestingProfile::GetSpeechInputPreferences() { |
| 713 if (!speech_input_preferences_.get()) | 713 if (!speech_input_preferences_.get()) |
| 714 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); | 714 speech_input_preferences_ = new ChromeSpeechInputPreferences(GetPrefs()); |
| 715 return speech_input_preferences_.get(); | 715 return speech_input_preferences_.get(); |
| 716 } | 716 } |
| 717 | 717 |
| 718 HostZoomMap* TestingProfile::GetHostZoomMap() { | 718 HostZoomMap* TestingProfile::GetHostZoomMap() { |
| 719 return NULL; | 719 return NULL; |
| 720 } | 720 } |
| 721 | 721 |
| 722 bool TestingProfile::HasProfileSyncService() const { | 722 bool TestingProfile::HasProfileSyncService() { |
| 723 return (profile_sync_service_.get() != NULL); | 723 return (profile_sync_service_.get() != NULL); |
| 724 } | 724 } |
| 725 | 725 |
| 726 std::wstring TestingProfile::GetName() { | 726 std::wstring TestingProfile::GetName() { |
| 727 return std::wstring(); | 727 return std::wstring(); |
| 728 } | 728 } |
| 729 | 729 |
| 730 std::wstring TestingProfile::GetID() { | 730 std::wstring TestingProfile::GetID() { |
| 731 return id_; | 731 return id_; |
| 732 } | 732 } |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 855 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 856 return GetExtensionSpecialStoragePolicy(); | 856 return GetExtensionSpecialStoragePolicy(); |
| 857 } | 857 } |
| 858 | 858 |
| 859 void TestingProfile::DestroyWebDataService() { | 859 void TestingProfile::DestroyWebDataService() { |
| 860 if (!web_data_service_.get()) | 860 if (!web_data_service_.get()) |
| 861 return; | 861 return; |
| 862 | 862 |
| 863 web_data_service_->Shutdown(); | 863 web_data_service_->Shutdown(); |
| 864 } | 864 } |
| OLD | NEW |