diff options
Diffstat (limited to 'chrome/browser/instant/instant_browsertest.cc')
-rw-r--r-- | chrome/browser/instant/instant_browsertest.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/instant/instant_browsertest.cc b/chrome/browser/instant/instant_browsertest.cc index 7d856c5..34a6949 100644 --- a/chrome/browser/instant/instant_browsertest.cc +++ b/chrome/browser/instant/instant_browsertest.cc @@ -57,8 +57,9 @@ class InstantTest : public InProcessBrowserTest { } void SetupInstantProvider(const std::string& page) { + Profile* profile = browser()->profile(); TemplateURLService* model = - TemplateURLServiceFactory::GetForProfile(browser()->profile()); + TemplateURLServiceFactory::GetForProfile(profile); ui_test_utils::WindowedNotificationObserver observer( chrome::NOTIFICATION_TEMPLATE_URL_SERVICE_LOADED, @@ -76,7 +77,7 @@ class InstantTest : public InProcessBrowserTest { test_server()->host_port_pair().port(), page.c_str())); data.instant_url = data.url(); // TemplateURLService takes ownership of this. - TemplateURL* template_url = new TemplateURL(data); + TemplateURL* template_url = new TemplateURL(profile, data); model->Add(template_url); model->SetDefaultSearchProvider(template_url); } |