| Index: chrome/browser/search_engines/template_url_service_unittest.cc
|
| diff --git a/chrome/browser/search_engines/template_url_service_unittest.cc b/chrome/browser/search_engines/template_url_service_unittest.cc
|
| index 5660551b497f3f2fe6797ea87f668449e49e4621..98f7b579e9846b6ebe2ce14144e6073127715a44 100644
|
| --- a/chrome/browser/search_engines/template_url_service_unittest.cc
|
| +++ b/chrome/browser/search_engines/template_url_service_unittest.cc
|
| @@ -21,6 +21,8 @@
|
| #include "chrome/browser/search_engines/template_url_service.h"
|
| #include "chrome/browser/search_engines/template_url_service_test_util.h"
|
| #include "chrome/browser/webdata/web_database.h"
|
| +#include "chrome/browser/webdata/web_data_service.h"
|
| +#include "chrome/browser/webdata/web_data_service_factory.h"
|
| #include "chrome/common/chrome_notification_types.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/test/base/testing_pref_service.h"
|
| @@ -1178,8 +1180,9 @@ TEST_F(TemplateURLServiceTest, FailedInit) {
|
| test_util_.VerifyLoad();
|
|
|
| test_util_.ClearModel();
|
| - WebDataService* web_service =
|
| - test_util_.profile()->GetWebDataService(Profile::EXPLICIT_ACCESS);
|
| + scoped_refptr<WebDataService> web_service =
|
| + WebDataServiceFactory::GetForProfile(test_util_.profile(),
|
| + Profile::EXPLICIT_ACCESS);
|
| web_service->UnloadDatabase();
|
| web_service->set_failed_init(true);
|
|
|
|
|