| Index: chrome/browser/profiles/profile_impl.cc
|
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
|
| index 1f6179dfa3ed434b61533c46eb9b0d90cf6c9686..3cf135934cb5357320c4631d6793f82b666ceb05 100644
|
| --- a/chrome/browser/profiles/profile_impl.cc
|
| +++ b/chrome/browser/profiles/profile_impl.cc
|
| @@ -226,7 +226,6 @@ ProfileImpl::ProfileImpl(const FilePath& path,
|
| host_content_settings_map_(NULL),
|
| history_service_created_(false),
|
| favicon_service_created_(false),
|
| - created_web_data_service_(false),
|
| start_time_(Time::Now()),
|
| delegate_(delegate),
|
| predictor_(NULL),
|
| @@ -482,14 +481,12 @@ ProfileImpl::~ProfileImpl() {
|
|
|
| ProfileDependencyManager::GetInstance()->DestroyProfileServices(this);
|
|
|
| - // Both HistoryService and WebDataService maintain threads for background
|
| + // HistoryService maintains threads for background
|
| // processing. Its possible each thread still has tasks on it that have
|
| // increased the ref count of the service. In such a situation, when we
|
| // decrement the refcount, it won't be 0, and the threads/databases aren't
|
| // properly shut down. By explicitly calling Cleanup/Shutdown we ensure the
|
| // databases are properly closed.
|
| - if (web_data_service_.get())
|
| - web_data_service_->Shutdown();
|
|
|
| if (top_sites_.get())
|
| top_sites_->Shutdown();
|
| @@ -813,25 +810,6 @@ history::ShortcutsBackend* ProfileImpl::GetShortcutsBackend() {
|
| return shortcuts_backend_.get();
|
| }
|
|
|
| -WebDataService* ProfileImpl::GetWebDataService(ServiceAccessType sat) {
|
| - if (!created_web_data_service_)
|
| - CreateWebDataService();
|
| - return web_data_service_.get();
|
| -}
|
| -
|
| -WebDataService* ProfileImpl::GetWebDataServiceWithoutCreating() {
|
| - return web_data_service_.get();
|
| -}
|
| -
|
| -void ProfileImpl::CreateWebDataService() {
|
| - DCHECK(!created_web_data_service_ && web_data_service_.get() == NULL);
|
| - created_web_data_service_ = true;
|
| - scoped_refptr<WebDataService> wds(new WebDataService());
|
| - if (!wds->Init(GetPath()))
|
| - return;
|
| - web_data_service_.swap(wds);
|
| -}
|
| -
|
| DownloadManager* ProfileImpl::GetDownloadManager() {
|
| return DownloadServiceFactory::GetForProfile(this)->GetDownloadManager();
|
| }
|
|
|