| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/prerender/prerender_field_trial.h" | 5 #include "chrome/browser/prerender/prerender_field_trial.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 "chrome/browser/prerender/prerender_manager.h" | 9 #include "chrome/browser/prerender/prerender_manager.h" |
| 10 #include "chrome/common/chrome_switches.h" | 10 #include "chrome/common/chrome_switches.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 if (switch_value == switches::kPrerenderFromOmniboxSwitchValueDisabled) | 56 if (switch_value == switches::kPrerenderFromOmniboxSwitchValueDisabled) |
| 57 return false; | 57 return false; |
| 58 | 58 |
| 59 DCHECK_EQ(switches::kPrerenderFromOmniboxSwitchValueAuto, switch_value); | 59 DCHECK_EQ(switches::kPrerenderFromOmniboxSwitchValueAuto, switch_value); |
| 60 } | 60 } |
| 61 | 61 |
| 62 return (base::FieldTrialList::FindFullName("PrerenderFromOmnibox") != | 62 return (base::FieldTrialList::FindFullName("PrerenderFromOmnibox") != |
| 63 "OmniboxPrerenderDisabled"); | 63 "OmniboxPrerenderDisabled"); |
| 64 } | 64 } |
| 65 | 65 |
| 66 bool IsSideEffectFreeWhitelistEnabled() { | |
| 67 return false; | |
| 68 } | |
| 69 | |
| 70 } // namespace prerender | 66 } // namespace prerender |
| OLD | NEW |