| 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 b44b31dca02a6ef701e499c1a04d30e1f2ff3ef5..1e7d442cc124d49b318f1377a3d2643a94f0d6d2 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/test/base/testing_profile.h"
|
| #include "content/test/test_browser_thread.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -1134,8 +1136,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);
|
|
|
|
|