Chromium Code Reviews| Index: chrome/browser/search_engines/util.h |
| =================================================================== |
| --- chrome/browser/search_engines/util.h (revision 208964) |
| +++ chrome/browser/search_engines/util.h (working copy) |
| @@ -23,6 +23,10 @@ |
| // none is set. |profile| may be NULL. |
| string16 GetDefaultSearchEngineName(Profile* profile); |
| +// Returns a GURL that searches for |terms| using the default search engine of |
| +// |profile|. |
| +GURL GetDefaultSearchURLForSearchTerms(Profile* profile, const string16& terms); |
|
Jered
2013/06/28 21:57:28
I'm surprised this doesn't already exist. This see
Peter Kasting
2013/06/28 22:16:02
Well, as you can tell from this patch, I can use t
|
| + |
| // Modifies |prepopulated_url| so that it contains user-modified fields from |
| // |original_turl|. Both URLs must have the same prepopulate_id. |
| void MergeIntoPrepopulatedEngineData(TemplateURLData* prepopulated_url, |