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

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

Issue 343823002: Move GenerateSearchURL() and GenerateKeyword() from TemplateURLService to TemplateURL (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/search_host_to_urls_map.cc
diff --git a/chrome/browser/search_engines/search_host_to_urls_map.cc b/chrome/browser/search_engines/search_host_to_urls_map.cc
index 276573cb4801e1241522ff63e3e7236704fcf686..2b32928e12a5a1af30dd4b49354f7ab9d34368ac 100644
--- a/chrome/browser/search_engines/search_host_to_urls_map.cc
+++ b/chrome/browser/search_engines/search_host_to_urls_map.cc
@@ -6,7 +6,6 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/search_engines/template_url.h"
-#include "chrome/browser/search_engines/template_url_service.h"
SearchHostToURLsMap::SearchHostToURLsMap()
: initialized_(false) {
@@ -28,8 +27,7 @@ void SearchHostToURLsMap::Add(TemplateURL* template_url,
DCHECK(initialized_);
DCHECK(template_url);
- const GURL url(TemplateURLService::GenerateSearchURL(
- template_url, search_terms_data));
+ const GURL url(template_url->GenerateSearchURL(search_terms_data));
if (!url.is_valid() || !url.has_host())
return;
@@ -41,8 +39,7 @@ void SearchHostToURLsMap::Remove(TemplateURL* template_url,
DCHECK(initialized_);
DCHECK(template_url);
- const GURL url(TemplateURLService::GenerateSearchURL(
- template_url, search_terms_data));
+ const GURL url(template_url->GenerateSearchURL(search_terms_data));
if (!url.is_valid() || !url.has_host())
return;

Powered by Google App Engine
This is Rietveld 408576698