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

Side by Side Diff: chrome/browser/search/search.h

Issue 330653004: Adds a field trial flag to control whether to use an alternate Instant search base page URL for pre… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_ 5 #ifndef CHROME_BROWSER_SEARCH_SEARCH_H_
6 #define CHROME_BROWSER_SEARCH_SEARCH_H_ 6 #define CHROME_BROWSER_SEARCH_SEARCH_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 // Given a FieldTrialFlags object, returns the bool value of the provided flag. 283 // Given a FieldTrialFlags object, returns the bool value of the provided flag.
284 // Exposed for testing only. 284 // Exposed for testing only.
285 bool GetBoolValueForFlagWithDefault(const std::string& flag, 285 bool GetBoolValueForFlagWithDefault(const std::string& flag,
286 bool default_value, 286 bool default_value,
287 const FieldTrialFlags& flags); 287 const FieldTrialFlags& flags);
288 288
289 // Returns the Cacheable New Tab Page URL for the given |profile|. 289 // Returns the Cacheable New Tab Page URL for the given |profile|.
290 GURL GetNewTabPageURL(Profile* profile); 290 GURL GetNewTabPageURL(Profile* profile);
291 291
292 // Returns true if 'use_alternate_instant_url' flag is set to true in field
293 // trials to use an alternate Instant search base page URL for prefetching
294 // search results. This allows experimentation of Instant search.
295 bool ShouldUseAltInstantURL();
296
292 } // namespace chrome 297 } // namespace chrome
293 298
294 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ 299 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698