summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-26 02:04:41 +0000
committeryusufo@chromium.org <yusufo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-26 02:04:41 +0000
commitf22b94f4b86d1fb9f70ea006024d272c4350493f (patch)
tree8cd2291e5b6dfd6f46ec37d0f0dc1dc84fbf9e86
parent31203376861a403af9e92810d03c453ad01b8f57 (diff)
downloadchromium_src-f22b94f4b86d1fb9f70ea006024d272c4350493f.zip
chromium_src-f22b94f4b86d1fb9f70ea006024d272c4350493f.tar.gz
chromium_src-f22b94f4b86d1fb9f70ea006024d272c4350493f.tar.bz2
Set toolbar model to support extraction of url like search terms
Currently on mixed content pages on ToT getSearchTermsforCurrentTab returns an empty string because we do not set the toolbarModel to support url like terms. Now that we have landed an Android side change with a UI for showing mixed content pages, we need this call to return the extracted search terms. So setting this flag and avoiding the early return. TEST: Use any search query to search for images and then click on one of the images. -Before this change: Omnibox switches to showing url with yellow padlock -After this change: Omnibox switches to showing query with yellow padlock BUG=239602 Review URL: https://chromiumcodereview.appspot.com/15508002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202324 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/android/tab_model/tab_model.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/ui/android/tab_model/tab_model.cc b/chrome/browser/ui/android/tab_model/tab_model.cc
index 9ecf372..65b834f 100644
--- a/chrome/browser/ui/android/tab_model/tab_model.cc
+++ b/chrome/browser/ui/android/tab_model/tab_model.cc
@@ -39,6 +39,7 @@ TabModel::TabModel(Profile* profile)
} else {
is_off_the_record_ = false;
}
+ toolbar_model_->SetSupportsExtractionOfURLLikeSearchTerms(true);
}
TabModel::TabModel()