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

Side by Side Diff: components/translate/core/browser/BUILD.gn

Issue 1410683002: Add some components to "gn check" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 source_set("browser") { 7 source_set("browser") {
8 sources = [ 8 sources = [
9 "language_state.cc", 9 "language_state.cc",
10 "language_state.h", 10 "language_state.h",
(...skipping 19 matching lines...) Expand all
30 "translate_script.h", 30 "translate_script.h",
31 "translate_step.h", 31 "translate_step.h",
32 "translate_ui_delegate.cc", 32 "translate_ui_delegate.cc",
33 "translate_ui_delegate.h", 33 "translate_ui_delegate.h",
34 "translate_url_fetcher.cc", 34 "translate_url_fetcher.cc",
35 "translate_url_fetcher.h", 35 "translate_url_fetcher.h",
36 "translate_url_util.cc", 36 "translate_url_util.cc",
37 "translate_url_util.h", 37 "translate_url_util.h",
38 ] 38 ]
39 39
40 deps = [
41 "//base",
42 "//base:i18n",
43 "//base:prefs",
44 "//components/data_use_measurement/core",
45 "//components/language_usage_metrics",
46 "//components/pref_registry",
47 "//components/resources:components_resources",
48 "//components/strings",
49 "//components/translate/core/common",
50 "//google_apis",
51 "//net",
52 "//third_party/icu",
53 "//ui/base",
54 "//url",
55 ]
56
40 if (!use_aura) { 57 if (!use_aura) {
41 sources += [ 58 sources += [
42 "translate_infobar_delegate.cc", 59 "translate_infobar_delegate.cc",
43 "translate_infobar_delegate.h", 60 "translate_infobar_delegate.h",
44 ] 61 ]
62 deps += [ "//components/infobars/core" ]
45 } 63 }
46 64
47 if (is_mac) { 65 if (is_mac) {
48 sources += [ 66 sources += [
49 "options_menu_model.cc", 67 "options_menu_model.cc",
50 "options_menu_model.h", 68 "options_menu_model.h",
51 ] 69 ]
52 } 70 }
53
54 deps = [
55 "//base",
56 "//components/data_use_measurement/core",
57 "//components/language_usage_metrics",
58 "//components/resources:components_resources",
59 "//components/strings",
60 "//components/translate/core/common",
61 "//net",
62 "//third_party/icu",
63 "//ui/base",
64 "//url",
65 ]
66 } 71 }
67 72
68 source_set("unit_tests") { 73 source_set("unit_tests") {
69 testonly = true 74 testonly = true
70 sources = [ 75 sources = [
71 "language_state_unittest.cc", 76 "language_state_unittest.cc",
72 "translate_browser_metrics_unittest.cc", 77 "translate_browser_metrics_unittest.cc",
73 "translate_language_list_unittest.cc", 78 "translate_language_list_unittest.cc",
74 "translate_prefs_unittest.cc", 79 "translate_prefs_unittest.cc",
75 "translate_script_unittest.cc", 80 "translate_script_unittest.cc",
76 ] 81 ]
77 deps = [ 82 deps = [
78 ":browser", 83 ":browser",
84 "//base",
85 "//base:prefs",
86 "//components/pref_registry:test_support",
87 "//components/translate/core/common",
88 "//net:test_support",
79 "//testing/gtest", 89 "//testing/gtest",
80 ] 90 ]
81 } 91 }
OLDNEW
« no previous file with comments | « components/translate/content/browser/BUILD.gn ('k') | components/translate/core/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698