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

Unified Diff: chrome/browser/google/google_util.h

Issue 10908226: Introduces a search term extraction mechanism working for arbitrary search providers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed keyword_table_unittest Created 8 years, 3 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/google/google_util.h
diff --git a/chrome/browser/google/google_util.h b/chrome/browser/google/google_util.h
index f35ea0098b929bd9155f473768e7d6e2866f11ed..0b6a27ee6e17b8917121b7047bc6fff8651bf211 100644
--- a/chrome/browser/google/google_util.h
+++ b/chrome/browser/google/google_util.h
@@ -10,7 +10,6 @@
#include <string>
#include "base/basictypes.h"
-#include "base/string16.h"
class GURL;
class Profile;
@@ -19,7 +18,6 @@ class Profile;
// and state relating to Google Chrome distributions (such as RLZ).
namespace google_util {
-// The query key that identifies a Google Extended API request for Instant.
Joao da Silva 2012/09/28 11:46:10 Did you mean to delete kInstantExtendedAPIParam to
dhollowa 2012/09/28 18:06:29 This is used in |UIThreadSearchTermsData::InstantE
beaudoin 2012/10/02 17:43:29 Done.
const char kInstantExtendedAPIParam[] = "espv";
GURL LinkDoctorBaseURL();
@@ -45,9 +43,6 @@ bool GetBrand(std::string* brand);
// install. Returns false if the information is not available.
bool GetReactivationBrand(std::string* brand);
-// Returns in the search terms used to create the Google search URL |url|.
-string16 GetSearchTermsFromGoogleSearchURL(const std::string& url);
-
// WARNING: The following IsGoogleXXX() functions use heuristics to rule out
// "obviously false" answers. They do NOT guarantee that the string in question
// is actually on a Google-owned domain, just that it looks plausible. If you
@@ -84,9 +79,6 @@ bool IsGoogleHostname(const std::string& host,
bool IsGoogleHomePageUrl(const std::string& url);
// True if |url| represents a valid Google search URL.
bool IsGoogleSearchUrl(const std::string& url);
-// True if |url| represents a valid Google search URL used by the Instant
-// Extended API.
-bool IsInstantExtendedAPIGoogleSearchUrl(const std::string& url);
dhollowa 2012/09/28 18:06:29 This should stay and continue to be used by search
beaudoin 2012/10/02 17:43:29 IMHO it's fishy to have two different mechanisms f
dhollowa 2012/10/02 18:14:13 Yes, ideally search term extraction is completely
// True if a build is strictly organic, according to its brand code.
bool IsOrganic(const std::string& brand);

Powered by Google App Engine
This is Rietveld 408576698