| 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 #include "chrome/browser/search/search.h" | 5 #include "chrome/browser/search/search.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const uint64 kEmbeddedPageVersionDisabled = 0; | 49 const uint64 kEmbeddedPageVersionDisabled = 0; |
| 50 #if defined(OS_IOS) || defined(OS_ANDROID) | 50 #if defined(OS_IOS) || defined(OS_ANDROID) |
| 51 const uint64 kEmbeddedPageVersionDefault = 1; | 51 const uint64 kEmbeddedPageVersionDefault = 1; |
| 52 #else | 52 #else |
| 53 const uint64 kEmbeddedPageVersionDefault = 2; | 53 const uint64 kEmbeddedPageVersionDefault = 2; |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 // The staleness timeout can be set (in seconds) via this config. | 56 // The staleness timeout can be set (in seconds) via this config. |
| 57 const char kStalePageTimeoutFlagName[] = "stale"; | 57 const char kStalePageTimeoutFlagName[] = "stale"; |
| 58 const int kStalePageTimeoutDefault = 3 * 3600; // 3 hours. | 58 const int kStalePageTimeoutDefault = 3 * 3600; // 3 hours. |
| 59 const int kStalePageTimeoutDisabled = 0; | |
| 60 | 59 |
| 61 const char kHideVerbatimFlagName[] = "hide_verbatim"; | 60 const char kHideVerbatimFlagName[] = "hide_verbatim"; |
| 62 const char kUseRemoteNTPOnStartupFlagName[] = "use_remote_ntp_on_startup"; | 61 const char kUseRemoteNTPOnStartupFlagName[] = "use_remote_ntp_on_startup"; |
| 63 const char kShowNtpFlagName[] = "show_ntp"; | 62 const char kShowNtpFlagName[] = "show_ntp"; |
| 64 const char kRecentTabsOnNTPFlagName[] = "show_recent_tabs"; | 63 const char kRecentTabsOnNTPFlagName[] = "show_recent_tabs"; |
| 65 const char kUseCacheableNTP[] = "use_cacheable_ntp"; | 64 const char kUseCacheableNTP[] = "use_cacheable_ntp"; |
| 66 const char kPrefetchSearchResultsOnSRP[] = "prefetch_results_srp"; | 65 const char kPrefetchSearchResultsOnSRP[] = "prefetch_results_srp"; |
| 67 const char kSuppressInstantExtendedOnSRPFlagName[] = "suppress_on_srp"; | 66 const char kSuppressInstantExtendedOnSRPFlagName[] = "suppress_on_srp"; |
| 68 | 67 |
| 69 // Constants for the field trial name and group prefix. | 68 // Constants for the field trial name and group prefix. |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 | 752 |
| 754 return TemplateURLRefToGURL(template_url->new_tab_url_ref(), | 753 return TemplateURLRefToGURL(template_url->new_tab_url_ref(), |
| 755 kDisableStartMargin, false); | 754 kDisableStartMargin, false); |
| 756 } | 755 } |
| 757 | 756 |
| 758 void ResetInstantExtendedOptInStateGateForTest() { | 757 void ResetInstantExtendedOptInStateGateForTest() { |
| 759 instant_extended_opt_in_state_gate = false; | 758 instant_extended_opt_in_state_gate = false; |
| 760 } | 759 } |
| 761 | 760 |
| 762 } // namespace chrome | 761 } // namespace chrome |
| OLD | NEW |