| Index: chrome/test/base/testing_profile.cc
|
| diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
|
| index 722d4e608011f904b613153a84221294983dc376..d5eb9adbbd99d0f144d56fb12892895c7f7b941a 100644
|
| --- a/chrome/test/base/testing_profile.cc
|
| +++ b/chrome/test/base/testing_profile.cc
|
| @@ -231,7 +231,6 @@ TestingProfile::~TestingProfile() {
|
| DestroyHistoryService();
|
| // FaviconService depends on HistoryServce so destroying it later.
|
| DestroyFaviconService();
|
| - DestroyWebDataService();
|
|
|
| if (pref_proxy_config_tracker_.get())
|
| pref_proxy_config_tracker_->DetachFromPrefService();
|
| @@ -324,21 +323,6 @@ void TestingProfile::CreateProtocolHandlerRegistry() {
|
| new ProtocolHandlerRegistry::Delegate());
|
| }
|
|
|
| -void TestingProfile::CreateWebDataService(bool delete_file) {
|
| - if (web_data_service_.get())
|
| - web_data_service_->Shutdown();
|
| -
|
| - if (delete_file) {
|
| - FilePath path = GetPath();
|
| - path = path.Append(chrome::kWebDataFilename);
|
| - file_util::Delete(path, false);
|
| - }
|
| -
|
| - web_data_service_ = new WebDataService;
|
| - if (web_data_service_.get())
|
| - web_data_service_->Init(GetPath());
|
| -}
|
| -
|
| void TestingProfile::BlockUntilBookmarkModelLoaded() {
|
| DCHECK(bookmark_bar_model_.get());
|
| if (bookmark_bar_model_->IsLoaded())
|
| @@ -533,14 +517,6 @@ history::ShortcutsBackend* TestingProfile::GetShortcutsBackend() {
|
| return NULL;
|
| }
|
|
|
| -WebDataService* TestingProfile::GetWebDataService(ServiceAccessType access) {
|
| - return web_data_service_.get();
|
| -}
|
| -
|
| -WebDataService* TestingProfile::GetWebDataServiceWithoutCreating() {
|
| - return web_data_service_.get();
|
| -}
|
| -
|
| void TestingProfile::SetPrefService(PrefService* prefs) {
|
| // ProtectorService binds itself very closely to the PrefService at the moment
|
| // of Profile creation and watches pref changes to update their backup.
|
| @@ -766,13 +742,6 @@ quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
|
| return GetExtensionSpecialStoragePolicy();
|
| }
|
|
|
| -void TestingProfile::DestroyWebDataService() {
|
| - if (!web_data_service_.get())
|
| - return;
|
| -
|
| - web_data_service_->Shutdown();
|
| -}
|
| -
|
| bool TestingProfile::WasCreatedByVersionOrLater(const std::string& version) {
|
| return true;
|
| }
|
|
|