OLD | NEW |
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 static_library("supervised_user_error_page") { | 5 static_library("supervised_user_error_page") { |
6 sources = [ | 6 sources = [ |
7 "supervised_user_error_page.cc", | 7 "supervised_user_error_page.cc", |
8 "supervised_user_error_page.h", | 8 "supervised_user_error_page.h", |
9 ] | 9 ] |
10 | 10 |
11 deps = [ | 11 deps = [ |
12 "//base", | 12 "//base", |
13 "//components/resources", | 13 "//components/resources", |
14 "//components/strings", | 14 "//components/strings", |
15 "//ui/base", | 15 "//ui/base", |
16 ] | 16 ] |
| 17 |
| 18 if (target_os == "android") { |
| 19 sources += [ |
| 20 "supervised_user_error_page_android.cc", |
| 21 "supervised_user_error_page_android.h", |
| 22 ] |
| 23 deps += [ "//components/web_restrictions:interfaces" ] |
| 24 } |
| 25 } |
| 26 |
| 27 if (target_os == "android") { |
| 28 source_set("gin") { |
| 29 sources = [ |
| 30 "gin_wrapper.cc", |
| 31 "gin_wrapper.h", |
| 32 ] |
| 33 deps = [ |
| 34 "//components/web_restrictions:interfaces", |
| 35 "//content/public/renderer", |
| 36 "//gin", |
| 37 "//third_party/WebKit/public:blink_headers", |
| 38 "//url", |
| 39 ] |
| 40 } |
17 } | 41 } |
18 | 42 |
19 source_set("unit_tests") { | 43 source_set("unit_tests") { |
20 testonly = true | 44 testonly = true |
21 sources = [ | 45 sources = [ |
22 "supervised_user_error_page_unittest.cc", | 46 "supervised_user_error_page_unittest.cc", |
23 ] | 47 ] |
24 deps = [ | 48 deps = [ |
25 ":supervised_user_error_page", | 49 ":supervised_user_error_page", |
26 "//base", | 50 "//base", |
27 "//base/test:test_support", | 51 "//base/test:test_support", |
28 "//components/resources", | 52 "//components/resources", |
29 "//components/strings", | 53 "//components/strings", |
30 "//testing/gmock", | 54 "//testing/gmock", |
31 "//testing/gtest", | 55 "//testing/gtest", |
32 "//ui/base", | 56 "//ui/base", |
33 ] | 57 ] |
34 } | 58 } |
OLD | NEW |