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

Unified Diff: chrome/common/instant_types.cc

Issue 922793002: Add an alternate contextual search url to extract the search terms from window.location.hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated the version number. Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/common/instant_types_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/instant_types.cc
diff --git a/chrome/common/instant_types.cc b/chrome/common/instant_types.cc
index 4dca3a53501e4118678e06d9e8128d0420549bc8..b214985963e4969812cbf29b0b01af4fa3bb25e6 100644
--- a/chrome/common/instant_types.cc
+++ b/chrome/common/instant_types.cc
@@ -92,7 +92,7 @@ EmbeddedSearchRequestParams::EmbeddedSearchRequestParams() {
}
EmbeddedSearchRequestParams::EmbeddedSearchRequestParams(const GURL& url) {
- const std::string& url_params(url.query());
+ const std::string& url_params(url.ref().empty()? url.query() : url.ref());
url::Component query, key, value;
query.len = static_cast<int>(url_params.size());
« no previous file with comments | « no previous file | chrome/common/instant_types_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698