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

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

Issue 2784933002: Mitigate spoofing attempt using Latin letters. (Closed)
Patch Set: pull IDNSpoofChecker to separae h/cc files Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 if (is_android) { 5 if (is_android) {
6 import("//build/config/android/rules.gni") 6 import("//build/config/android/rules.gni")
7 } 7 }
8 8
9 static_library("url_formatter") { 9 static_library("url_formatter") {
10 sources = [ 10 sources = [
11 "android/component_jni_registrar.cc", 11 "android/component_jni_registrar.cc",
12 "android/component_jni_registrar.h", 12 "android/component_jni_registrar.h",
13 "elide_url.cc", 13 "elide_url.cc",
14 "elide_url.h", 14 "elide_url.h",
15 "idn_spoof_checker.cc",
16 "idn_spoof_checker.h",
15 "url_fixer.cc", 17 "url_fixer.cc",
16 "url_fixer.h", 18 "url_fixer.h",
17 "url_formatter.cc", 19 "url_formatter.cc",
18 "url_formatter.h", 20 "url_formatter.h",
19 "url_formatter_android.cc", 21 "url_formatter_android.cc",
20 "url_formatter_android.h", 22 "url_formatter_android.h",
21 ] 23 ]
22 24
23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 25 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
24 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 26 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
25 27
26 deps = [ 28 deps = [
27 "//base", 29 "//base",
28 "//base:i18n", 30 "//base:i18n",
31 "//components/url_formatter/top_domains",
29 "//net", 32 "//net",
30 "//third_party/icu", 33 "//third_party/icu",
31 "//url", 34 "//url",
32 ] 35 ]
33 36
34 if (is_android) { 37 if (is_android) {
35 deps += [ "android:jni_headers" ] 38 deps += [ "android:jni_headers" ]
36 } else { 39 } else {
37 deps += [ "//ui/gfx" ] 40 deps += [ "//ui/gfx" ]
38 } 41 }
39 } 42 }
40 43
41 source_set("unit_tests") { 44 source_set("unit_tests") {
42 testonly = true 45 testonly = true
43 sources = [ 46 sources = [
44 "elide_url_unittest.cc", 47 "elide_url_unittest.cc",
45 "url_fixer_unittest.cc", 48 "url_fixer_unittest.cc",
46 "url_formatter_unittest.cc", 49 "url_formatter_unittest.cc",
47 ] 50 ]
48 51
49 deps = [ 52 deps = [
50 ":url_formatter", 53 ":url_formatter",
51 "//base", 54 "//base",
55 "//components/url_formatter/top_domains",
52 "//net", 56 "//net",
53 "//testing/gtest", 57 "//testing/gtest",
54 "//ui/gfx", 58 "//ui/gfx",
55 "//url", 59 "//url",
56 ] 60 ]
57 61
58 if (is_android) { 62 if (is_android) {
59 deps -= [ "//ui/gfx" ] 63 deps -= [ "//ui/gfx" ]
60 } 64 }
61 } 65 }
OLDNEW
« no previous file with comments | « no previous file | components/url_formatter/idn_spoof_checker.h » ('j') | components/url_formatter/idn_spoof_checker.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698