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

Unified Diff: chrome/browser/search_engines/template_url.h

Issue 7558014: Add a URL param to indicate group selection in Instant field trial. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed @pkasting's comments Created 9 years, 4 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 | « chrome/browser/search_engines/search_terms_data.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/template_url.h
diff --git a/chrome/browser/search_engines/template_url.h b/chrome/browser/search_engines/template_url.h
index a723530c00f0d13210ad1c9f1ffdcc6a1ce2050b..e6da1bc070cfbd18d0ab5b4a0abf576e327edbcc 100644
--- a/chrome/browser/search_engines/template_url.h
+++ b/chrome/browser/search_engines/template_url.h
@@ -16,6 +16,7 @@
#include "googleurl/src/gurl.h"
class PrefService;
+class Profile;
class SearchTermsData;
class TemplateURL;
class WebDataService;
@@ -76,6 +77,16 @@ class TemplateURLRef {
int accepted_suggestion,
const string16& original_query_for_suggestion) const;
+ // Just like ReplaceSearchTerms except that it takes a Profile that's used to
+ // retrieve Instant field trial params. Most callers don't care about those
+ // params, and so can use ReplaceSearchTerms instead.
+ std::string ReplaceSearchTermsUsingProfile(
+ Profile* profile,
+ const TemplateURL& host,
+ const string16& terms,
+ int accepted_suggestion,
+ const string16& original_query_for_suggestion) const;
+
// Just like ReplaceSearchTerms except that it takes SearchTermsData to supply
// the data for some search terms. Most of the time ReplaceSearchTerms should
// be called.
@@ -158,6 +169,7 @@ class TemplateURLRef {
GOOGLE_ACCEPTED_SUGGESTION,
GOOGLE_BASE_URL,
GOOGLE_BASE_SUGGEST_URL,
+ GOOGLE_INSTANT_FIELD_TRIAL_GROUP,
GOOGLE_ORIGINAL_QUERY_FOR_SUGGESTION,
GOOGLE_RLZ,
GOOGLE_SEARCH_FIELDTRIAL_GROUP,
« no previous file with comments | « chrome/browser/search_engines/search_terms_data.cc ('k') | chrome/browser/search_engines/template_url.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698