Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: components/search_engines/BUILD.gn

Issue 1598553003: Implement the Windows desktop search redirection feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't assume that a Browser exists + fix nits Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//tools/json_to_struct/json_to_struct.gni") 6 import("//tools/json_to_struct/json_to_struct.gni")
7 7
8 static_library("search_engines") { 8 static_library("search_engines") {
9 sources = [ 9 sources = [
10 "default_search_manager.cc", 10 "default_search_manager.cc",
11 "default_search_manager.h", 11 "default_search_manager.h",
12 "default_search_pref_migration.cc", 12 "default_search_pref_migration.cc",
13 "default_search_pref_migration.h", 13 "default_search_pref_migration.h",
14 "desktop_search_win.cc", 14 "desktop_search_infobar_delegate_win.cc",
15 "desktop_search_win.h", 15 "desktop_search_infobar_delegate_win.h",
16 "desktop_search_utils_win.cc",
17 "desktop_search_utils_win.h",
16 "keyword_table.cc", 18 "keyword_table.cc",
17 "keyword_table.h", 19 "keyword_table.h",
18 "keyword_web_data_service.cc", 20 "keyword_web_data_service.cc",
19 "keyword_web_data_service.h", 21 "keyword_web_data_service.h",
20 "search_engine_data_type_controller.cc", 22 "search_engine_data_type_controller.cc",
21 "search_engine_data_type_controller.h", 23 "search_engine_data_type_controller.h",
22 "search_engine_type.h", 24 "search_engine_type.h",
23 "search_engines_pref_names.cc", 25 "search_engines_pref_names.cc",
24 "search_engines_pref_names.h", 26 "search_engines_pref_names.h",
25 "search_engines_switches.cc", 27 "search_engines_switches.cc",
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 if (enable_configuration_policy) { 88 if (enable_configuration_policy) {
87 sources += [ 89 sources += [
88 "default_search_policy_handler.cc", 90 "default_search_policy_handler.cc",
89 "default_search_policy_handler.h", 91 "default_search_policy_handler.h",
90 ] 92 ]
91 deps += [ 93 deps += [
92 "//components/policy", 94 "//components/policy",
93 "//components/policy:policy_component", 95 "//components/policy:policy_component",
94 ] 96 ]
95 } 97 }
98
99 if (is_win) {
100 deps += [ "//components/infobars/core" ]
101 }
96 } 102 }
97 103
98 source_set("test_support") { 104 source_set("test_support") {
99 testonly = true 105 testonly = true
100 sources = [ 106 sources = [
101 "default_search_pref_test_util.cc", 107 "default_search_pref_test_util.cc",
102 "default_search_pref_test_util.h", 108 "default_search_pref_test_util.h",
103 "testing_search_terms_data.cc", 109 "testing_search_terms_data.cc",
104 "testing_search_terms_data.h", 110 "testing_search_terms_data.h",
105 ] 111 ]
106 112
107 public_deps = [ 113 public_deps = [
108 ":search_engines", 114 ":search_engines",
109 "//base", 115 "//base",
110 "//testing/gtest", 116 "//testing/gtest",
111 ] 117 ]
112 } 118 }
113 119
114 source_set("unit_tests") { 120 source_set("unit_tests") {
115 testonly = true 121 testonly = true
116 sources = [ 122 sources = [
117 "default_search_manager_unittest.cc", 123 "default_search_manager_unittest.cc",
118 "default_search_pref_migration_unittest.cc", 124 "default_search_pref_migration_unittest.cc",
119 "desktop_search_win_unittest.cc", 125 "desktop_search_infobar_delegate_win_unittest.cc",
126 "desktop_search_utils_win_unittest.cc",
120 "keyword_table_unittest.cc", 127 "keyword_table_unittest.cc",
121 "search_engine_data_type_controller_unittest.cc", 128 "search_engine_data_type_controller_unittest.cc",
122 "search_host_to_urls_map_unittest.cc", 129 "search_host_to_urls_map_unittest.cc",
123 "template_url_prepopulate_data_unittest.cc", 130 "template_url_prepopulate_data_unittest.cc",
124 "template_url_service_util_unittest.cc", 131 "template_url_service_util_unittest.cc",
125 "template_url_unittest.cc", 132 "template_url_unittest.cc",
126 ] 133 ]
127 134
128 deps = [ 135 deps = [
129 ":prepopulated_engines", 136 ":prepopulated_engines",
130 ":test_support", 137 ":test_support",
131 "//base", 138 "//base",
132 "//components/google/core/browser", 139 "//components/google/core/browser",
133 "//components/pref_registry:test_support", 140 "//components/pref_registry:test_support",
134 "//components/sync_driver:test_support", 141 "//components/sync_driver:test_support",
135 "//components/webdata/common", 142 "//components/webdata/common",
136 "//sql", 143 "//sql",
137 "//sync:test_support_sync_api", 144 "//sync:test_support_sync_api",
138 "//testing/gmock", 145 "//testing/gmock",
139 "//testing/gtest", 146 "//testing/gtest",
140 "//url", 147 "//url",
141 ] 148 ]
142 149
150 if (is_win) {
151 deps += [
152 "//base:prefs",
153 "//components/infobars/core",
154 "//components/syncable_prefs:test_support",
155 ]
156 }
157
143 if (enable_configuration_policy) { 158 if (enable_configuration_policy) {
144 sources += [ "default_search_policy_handler_unittest.cc" ] 159 sources += [ "default_search_policy_handler_unittest.cc" ]
145 160
146 deps += [ 161 deps += [
147 "//components/policy", 162 "//components/policy",
148 "//components/policy:policy_component_test_support", 163 "//components/policy:policy_component_test_support",
149 ] 164 ]
150 } 165 }
151 } 166 }
152 167
153 json_to_struct("prepopulated_engines") { 168 json_to_struct("prepopulated_engines") {
154 visibility = [ ":*" ] 169 visibility = [ ":*" ]
155 170
156 source = "prepopulated_engines.json" 171 source = "prepopulated_engines.json"
157 schema_file = "prepopulated_engines_schema.json" 172 schema_file = "prepopulated_engines_schema.json"
158 namespace = "TemplateURLPrepopulateData" 173 namespace = "TemplateURLPrepopulateData"
159 } 174 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698