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

Unified Diff: chrome/browser/autocomplete/search_provider.cc

Issue 126052: Fixes bug where keyword editor would end up prefixing all keyword urls... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/autocomplete/search_provider.cc
===================================================================
--- chrome/browser/autocomplete/search_provider.cc (revision 18266)
+++ chrome/browser/autocomplete/search_provider.cc (working copy)
@@ -365,9 +365,9 @@
const TemplateURLRef* const suggestions_url = provider.suggestions_url();
DCHECK(suggestions_url->SupportsReplacement());
URLFetcher* fetcher = URLFetcher::Create(id,
- suggestions_url->ReplaceSearchTerms(
+ GURL(WideToUTF8(suggestions_url->ReplaceSearchTerms(
provider, text, TemplateURLRef::NO_SUGGESTIONS_AVAILABLE,
- std::wstring()),
+ std::wstring()))),
URLFetcher::GET, this);
fetcher->set_request_context(profile_->GetRequestContext());
fetcher->Start();
@@ -763,10 +763,10 @@
const TemplateURLRef* const search_url = provider.url();
DCHECK(search_url->SupportsReplacement());
- match.destination_url = search_url->ReplaceSearchTerms(provider,
- query_string,
- accepted_suggestion,
- input_text);
+ match.destination_url =
+ GURL(WideToUTF8(search_url->ReplaceSearchTerms(provider, query_string,
+ accepted_suggestion,
+ input_text)));
// Search results don't look like URLs.
match.transition =
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/autocomplete/search_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698