Chromium Code Reviews

Unified Diff: chrome/browser/search_engines/template_url.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.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « chrome/browser/search_engines/template_url.h ('k') | chrome/browser/search_engines/template_url_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url.cc
===================================================================
--- chrome/browser/search_engines/template_url.cc (revision 18266)
+++ chrome/browser/search_engines/template_url.cc (working copy)
@@ -230,17 +230,17 @@
}
}
-GURL TemplateURLRef::ReplaceSearchTerms(
+std::wstring TemplateURLRef::ReplaceSearchTerms(
const TemplateURL& host,
const std::wstring& terms,
int accepted_suggestion,
const std::wstring& original_query_for_suggestion) const {
ParseIfNecessary();
if (!valid_)
- return GURL();
+ return std::wstring();
if (replacements_.empty())
- return GURL(WideToUTF8(parsed_url_));
+ return parsed_url_;
// Encode the search terms so that we know the encoding.
const std::vector<std::string>& encodings = host.input_encodings();
@@ -330,7 +330,7 @@
}
}
- return GURL(WideToUTF8(url));
+ return url;
}
bool TemplateURLRef::SupportsReplacement() const {
« no previous file with comments | « chrome/browser/search_engines/template_url.h ('k') | chrome/browser/search_engines/template_url_model.cc » ('j') | no next file with comments »

Powered by Google App Engine