| OLD | NEW |
| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 // Given a FieldTrialFlags object, returns the bool value of the provided flag. | 278 // Given a FieldTrialFlags object, returns the bool value of the provided flag. |
| 279 // Exposed for testing only. | 279 // Exposed for testing only. |
| 280 bool GetBoolValueForFlagWithDefault(const std::string& flag, | 280 bool GetBoolValueForFlagWithDefault(const std::string& flag, |
| 281 bool default_value, | 281 bool default_value, |
| 282 const FieldTrialFlags& flags); | 282 const FieldTrialFlags& flags); |
| 283 | 283 |
| 284 // Returns the Cacheable New Tab Page URL for the given |profile|. | 284 // Returns the Cacheable New Tab Page URL for the given |profile|. |
| 285 GURL GetNewTabPageURL(Profile* profile); | 285 GURL GetNewTabPageURL(Profile* profile); |
| 286 | 286 |
| 287 // Returns true if 'use_alternate_instant_url' flag is set to true in field |
| 288 // trials to use an alternate Instant search base page URL for prefetching |
| 289 // search results. This allows experimentation of Instant search. |
| 290 bool ShouldUseAltInstantURL(); |
| 291 |
| 287 } // namespace chrome | 292 } // namespace chrome |
| 288 | 293 |
| 289 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ | 294 #endif // CHROME_BROWSER_SEARCH_SEARCH_H_ |
| OLD | NEW |