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

Unified Diff: chrome/browser/search_engines/template_url_service.h

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/template_url_service.h
diff --git a/chrome/browser/search_engines/template_url_service.h b/chrome/browser/search_engines/template_url_service.h
index 494aede3dabdf5588d153915d682fcee9d94e9e6..79167a58201b247d245df64815f7638aeb440475 100644
--- a/chrome/browser/search_engines/template_url_service.h
+++ b/chrome/browser/search_engines/template_url_service.h
@@ -113,20 +113,10 @@ class TemplateURLService : public WebDataServiceConsumer,
scoped_ptr<TemplateURLData>* default_provider_data,
bool* is_managed);
- // Generates a suitable keyword for the specified url, which must be valid.
- // This is guaranteed not to return an empty string, since TemplateURLs should
- // never have an empty keyword.
- static base::string16 GenerateKeyword(const GURL& url);
-
// Removes any unnecessary characters from a user input keyword.
// This removes the leading scheme, "www." and any trailing slash.
static base::string16 CleanUserInputKeyword(const base::string16& keyword);
- // Returns the search url for t_url. Returns an empty GURL if t_url has no
- // url().
- static GURL GenerateSearchURL(const TemplateURL* t_url,
- const SearchTermsData& search_terms_data);
-
// Saves enough of url to |prefs| so that it can be loaded from preferences on
// start up.
static void SaveDefaultSearchProviderToPrefs(const TemplateURL* url,
« no previous file with comments | « chrome/browser/search_engines/template_url_parser.cc ('k') | chrome/browser/search_engines/template_url_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698