Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(519)

Unified Diff: chrome/browser/search_engines/default_search_pref_migration_unittest.cc

Issue 338363004: Remove Profile* from TemplateURL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/default_search_pref_migration_unittest.cc
diff --git a/chrome/browser/search_engines/default_search_pref_migration_unittest.cc b/chrome/browser/search_engines/default_search_pref_migration_unittest.cc
index bc245f9d9c6b62639da987d815245890dc1ac95c..da1a6bab24e746ff3da56db6bc0068dda6daf01d 100644
--- a/chrome/browser/search_engines/default_search_pref_migration_unittest.cc
+++ b/chrome/browser/search_engines/default_search_pref_migration_unittest.cc
@@ -62,7 +62,7 @@ scoped_ptr<TemplateURL> DefaultSearchPrefMigrationTest::CreateKeyword(
data.short_name = base::ASCIIToUTF16(short_name);
data.SetKeyword(base::ASCIIToUTF16(keyword));
data.SetURL(url);
- scoped_ptr<TemplateURL> t_url(new TemplateURL(profile(), data));
+ scoped_ptr<TemplateURL> t_url(new TemplateURL(data));
return t_url.Pass();
}
@@ -150,7 +150,7 @@ TEST_F(DefaultSearchPrefMigrationTest,
*default_search_manager()->GetDefaultSearchEngine(&source));
EXPECT_EQ(DefaultSearchManager::FROM_FALLBACK, source);
- TemplateURL prepopulated_turl(profile(), prepopulated_default);
+ TemplateURL prepopulated_turl(prepopulated_default);
// Store a value in the legacy location.
TemplateURLService::SaveDefaultSearchProviderToPrefs(&prepopulated_turl,

Powered by Google App Engine
This is Rietveld 408576698