summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/toolbar/toolbar_model_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/toolbar/toolbar_model_impl.cc')
-rw-r--r--chrome/browser/ui/toolbar/toolbar_model_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/ui/toolbar/toolbar_model_impl.cc b/chrome/browser/ui/toolbar/toolbar_model_impl.cc
index ddfd315a..e27e2fa 100644
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.cc
@@ -96,7 +96,7 @@ base::string16 ToolbarModelImpl::GetCorpusNameForMobile() const {
// If there is a query in the url fragment look for the corpus name there,
// otherwise look for the corpus name in the query parameters.
const std::string& query_str(google_util::HasGoogleSearchQueryParam(
- url.ref()) ? url.ref() : url.query());
+ url.ref_piece()) ? url.ref() : url.query());
url::Component query(0, query_str.length()), key, value;
const char kChipKey[] = "sboxchip";
while (url::ExtractQueryKeyValue(query_str.c_str(), &query, &key, &value)) {