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

Unified Diff: chrome/browser/webdata/keyword_table.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
« no previous file with comments | « chrome/browser/ui/search_engines/template_url_table_model.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/keyword_table.cc
diff --git a/chrome/browser/webdata/keyword_table.cc b/chrome/browser/webdata/keyword_table.cc
index 40b82434685edf06496c09e1ee3309a24029072f..1c207ac4d2922b02a49540e47cc01467bee09959 100644
--- a/chrome/browser/webdata/keyword_table.cc
+++ b/chrome/browser/webdata/keyword_table.cc
@@ -604,7 +604,7 @@ bool KeywordTable::MigrateKeywordsTableForVersion45(const std::string& name) {
TemplateURLData data;
data.SetKeyword(keyword);
data.SetURL(s.ColumnString(2));
- TemplateURL turl(NULL, data);
+ TemplateURL turl(data);
// Don't persist extension keywords to disk. These will get added to the
// TemplateURLService as the extensions are loaded.
bool delete_entry = turl.GetType() == TemplateURL::OMNIBOX_API_EXTENSION;
@@ -612,8 +612,7 @@ bool KeywordTable::MigrateKeywordsTableForVersion45(const std::string& name) {
// Explicitly generate keywords for all rows with the autogenerate bit set
// or where the keyword is empty.
SearchTermsData terms_data;
- GURL url(TemplateURLService::GenerateSearchURLUsingTermsData(&turl,
- terms_data));
+ GURL url(TemplateURLService::GenerateSearchURL(&turl, terms_data));
if (!url.is_valid()) {
delete_entry = true;
} else {
« no previous file with comments | « chrome/browser/ui/search_engines/template_url_table_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698