| Index: chrome/browser/search/instant_unittest_base.cc
|
| diff --git a/chrome/browser/search/instant_unittest_base.cc b/chrome/browser/search/instant_unittest_base.cc
|
| index 629100934369a6e92fcf3a105e03a90b32ed1a68..ae23ad9dc1df881e3f6bd3ea3a3fee222bd26740 100644
|
| --- a/chrome/browser/search/instant_unittest_base.cc
|
| +++ b/chrome/browser/search/instant_unittest_base.cc
|
| @@ -87,11 +87,16 @@ bool InstantUnitTestBase::IsInstantServiceObserver(
|
| return instant_service_->observers_.HasObserver(observer);
|
| }
|
|
|
| +TestingProfile* InstantUnitTestBase::CreateProfile() {
|
| + TestingProfile* profile = BrowserWithTestWindowTest::CreateProfile();
|
| + TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
|
| + profile, &TemplateURLServiceFactory::BuildInstanceFor);
|
| + return profile;
|
| +}
|
| +
|
| void InstantUnitTestBase::SetUpHelper() {
|
| BrowserWithTestWindowTest::SetUp();
|
|
|
| - TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
|
| - profile(), &TemplateURLServiceFactory::BuildInstanceFor);
|
| template_url_service_ = TemplateURLServiceFactory::GetForProfile(profile());
|
| ui_test_utils::WaitForTemplateURLServiceToLoad(template_url_service_);
|
|
|
|
|