Index: chrome/browser/search_engines/template_url_service.cc |
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc |
index fb6f31eebfd0398a0c17fd41b6bf8603ef7cc3d8..ad45a561a449eb9e4cb28bfcf8f8f4df5f3b20e2 100644 |
--- a/chrome/browser/search_engines/template_url_service.cc |
+++ b/chrome/browser/search_engines/template_url_service.cc |
@@ -34,6 +34,7 @@ |
#include "chrome/browser/search_engines/template_url_service_observer.h" |
#include "chrome/browser/search_engines/util.h" |
#include "chrome/browser/sync/api/sync_change.h" |
+#include "chrome/browser/webdata/web_data_service_factory.h" |
#include "chrome/common/chrome_notification_types.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/env_vars.h" |
@@ -515,8 +516,10 @@ void TemplateURLService::Load() { |
if (loaded_ || load_handle_) |
return; |
- if (!service_.get()) |
- service_ = profile_->GetWebDataService(Profile::EXPLICIT_ACCESS); |
+ if (!service_.get()) { |
+ service_ = WebDataServiceFactory::GetForProfile(profile_, |
+ Profile::EXPLICIT_ACCESS); |
+ } |
if (service_.get()) { |
load_handle_ = service_->GetKeywords(this); |