| 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 } | 747 } |
| 748 | 748 |
| 749 base::Time TestingProfile::GetStartTime() const { | 749 base::Time TestingProfile::GetStartTime() const { |
| 750 return start_time_; | 750 return start_time_; |
| 751 } | 751 } |
| 752 | 752 |
| 753 ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() { | 753 ProtocolHandlerRegistry* TestingProfile::GetProtocolHandlerRegistry() { |
| 754 return protocol_handler_registry_.get(); | 754 return protocol_handler_registry_.get(); |
| 755 } | 755 } |
| 756 | 756 |
| 757 SpellCheckHost* TestingProfile::GetSpellCheckHost() { | |
| 758 return NULL; | |
| 759 } | |
| 760 | |
| 761 WebKitContext* TestingProfile::GetWebKitContext() { | 757 WebKitContext* TestingProfile::GetWebKitContext() { |
| 762 if (webkit_context_ == NULL) { | 758 if (webkit_context_ == NULL) { |
| 763 webkit_context_ = new WebKitContext( | 759 webkit_context_ = new WebKitContext( |
| 764 IsOffTheRecord(), GetPath(), | 760 IsOffTheRecord(), GetPath(), |
| 765 GetExtensionSpecialStoragePolicy(), | 761 GetExtensionSpecialStoragePolicy(), |
| 766 false, NULL, NULL); | 762 false, NULL, NULL); |
| 767 } | 763 } |
| 768 return webkit_context_; | 764 return webkit_context_; |
| 769 } | 765 } |
| 770 | 766 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 854 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 850 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
| 855 return GetExtensionSpecialStoragePolicy(); | 851 return GetExtensionSpecialStoragePolicy(); |
| 856 } | 852 } |
| 857 | 853 |
| 858 void TestingProfile::DestroyWebDataService() { | 854 void TestingProfile::DestroyWebDataService() { |
| 859 if (!web_data_service_.get()) | 855 if (!web_data_service_.get()) |
| 860 return; | 856 return; |
| 861 | 857 |
| 862 web_data_service_->Shutdown(); | 858 web_data_service_->Shutdown(); |
| 863 } | 859 } |
| OLD | NEW |