Index: chrome/browser/search_engines/template_url_fetcher_unittest.cc |
=================================================================== |
--- chrome/browser/search_engines/template_url_fetcher_unittest.cc (revision 132905) |
+++ chrome/browser/search_engines/template_url_fetcher_unittest.cc (working copy) |
@@ -47,12 +47,12 @@ |
virtual void SetUp() OVERRIDE { |
test_util_.SetUp(); |
test_util_.StartIOThread(); |
- ASSERT_TRUE(test_util_.profile()); |
- ASSERT_TRUE( |
- TemplateURLFetcherFactory::GetForProfile(test_util_.profile())); |
+ TestingProfile* profile = test_util_.profile(); |
+ ASSERT_TRUE(profile); |
+ ASSERT_TRUE(TemplateURLFetcherFactory::GetForProfile(profile)); |
- test_util_.profile()->CreateRequestContext(); |
- ASSERT_TRUE(test_util_.profile()->GetRequestContext()); |
+ profile->CreateRequestContext(); |
+ ASSERT_TRUE(profile->GetRequestContext()); |
ASSERT_TRUE(test_server_.Start()); |
} |
@@ -291,7 +291,7 @@ |
data.short_name = keyword; |
data.SetKeyword(keyword); |
data.SetURL("http://example.com/"); |
- test_util_.model()->Add(new TemplateURL(data)); |
+ test_util_.model()->Add(new TemplateURL(test_util_.profile(), data)); |
test_util_.ChangeModelToLoadState(); |
ASSERT_TRUE(test_util_.model()->GetTemplateURLForKeyword(keyword)); |