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 16 matching lines...) Expand all Loading... |
27 #include "chrome/common/search_urls.h" | 27 #include "chrome/common/search_urls.h" |
28 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
29 #include "components/google/core/browser/google_util.h" | 29 #include "components/google/core/browser/google_util.h" |
30 #include "components/pref_registry/pref_registry_syncable.h" | 30 #include "components/pref_registry/pref_registry_syncable.h" |
31 #include "components/search/search.h" | 31 #include "components/search/search.h" |
32 #include "components/search_engines/template_url_service.h" | 32 #include "components/search_engines/template_url_service.h" |
33 #include "components/sessions/serialized_navigation_entry.h" | 33 #include "components/sessions/serialized_navigation_entry.h" |
34 #include "content/public/browser/navigation_entry.h" | 34 #include "content/public/browser/navigation_entry.h" |
35 #include "content/public/browser/render_process_host.h" | 35 #include "content/public/browser/render_process_host.h" |
36 #include "content/public/browser/web_contents.h" | 36 #include "content/public/browser/web_contents.h" |
37 #include "grit/generated_resources.h" | |
38 #include "ui/base/l10n/l10n_util.h" | |
39 | 37 |
40 #if defined(ENABLE_MANAGED_USERS) | 38 #if defined(ENABLE_MANAGED_USERS) |
41 #include "chrome/browser/supervised_user/supervised_user_service.h" | 39 #include "chrome/browser/supervised_user/supervised_user_service.h" |
42 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 40 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
43 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" | 41 #include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
44 #endif | 42 #endif |
45 | 43 |
46 namespace chrome { | 44 namespace chrome { |
47 | 45 |
48 namespace { | 46 namespace { |
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
741 cl->AppendSwitch(switches::kEnableQueryExtraction); | 739 cl->AppendSwitch(switches::kEnableQueryExtraction); |
742 } | 740 } |
743 | 741 |
744 bool ShouldUseAltInstantURL() { | 742 bool ShouldUseAltInstantURL() { |
745 FieldTrialFlags flags; | 743 FieldTrialFlags flags; |
746 return GetFieldTrialInfo(&flags) && GetBoolValueForFlagWithDefault( | 744 return GetFieldTrialInfo(&flags) && GetBoolValueForFlagWithDefault( |
747 kUseAltInstantURL, false, flags); | 745 kUseAltInstantURL, false, flags); |
748 } | 746 } |
749 | 747 |
750 } // namespace chrome | 748 } // namespace chrome |
OLD | NEW |