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

Unified Diff: chrome/browser/ui/search/instant_search_prerenderer.h

Issue 141893009: Create a new helper function to extract search terms from the URL irrespective of the availablility (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
Index: chrome/browser/ui/search/instant_search_prerenderer.h
diff --git a/chrome/browser/ui/search/instant_search_prerenderer.h b/chrome/browser/ui/search/instant_search_prerenderer.h
index dba90417772e424a779827ae8596849cecf83922..e0eac1ada0e93f35375af78c2bd3328ccb13e0c5 100644
--- a/chrome/browser/ui/search/instant_search_prerenderer.h
+++ b/chrome/browser/ui/search/instant_search_prerenderer.h
@@ -82,6 +82,11 @@ class InstantSearchPrerenderer {
bool IsAllowed(const AutocompleteMatch& match,
content::WebContents* source) const;
+ // Extracts and returns search terms from |url|. Does not consider
+ // IsQueryExtractionEnabled() and Instant support state of the page and does
+ // not check for a privileged process.
+ base::string16 GetSearchTermsFromURL(const GURL& url) const;
Jered 2014/02/07 03:02:26 This code would be more appropriate in search.cc.
kmadhusu 2014/02/11 01:40:02 Done.
+
private:
friend class InstantSearchPrerendererTest;

Powered by Google App Engine
This is Rietveld 408576698