| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |