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

Side by Side Diff: components/translate/content/renderer/BUILD.gn

Issue 461633002: Refactor language detection logic to allow non-static CLD data sources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Create a factory for test harnesses and use it Created 6 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 | Annotate | Revision Log
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 6
7 static_library("renderer") { 7 static_library("renderer") {
8 sources = [ 8 sources = [
9 "data_file_renderer_cld_data_provider.cc",
10 "data_file_renderer_cld_data_provider.h",
9 "renderer_cld_data_provider.h", 11 "renderer_cld_data_provider.h",
12 "static_renderer_cld_data_provider.cc",
13 "static_renderer_cld_data_provider.h",
10 "translate_helper.cc", 14 "translate_helper.cc",
11 "translate_helper.h", 15 "translate_helper.h",
12 ] 16 ]
13 17
14 deps = [ 18 deps = [
15 "//base", 19 "//base",
16 "//components/translate/content/common", 20 "//components/translate/content/common",
17 "//components/translate/core/common", 21 "//components/translate/core/common",
18 "//components/translate/core/language_detection", 22 "//components/translate/core/language_detection",
19 "//content/public/common", 23 "//content/public/common",
20 "//content/public/renderer", 24 "//content/public/renderer",
21 "//ipc", 25 "//ipc",
22 "//third_party/WebKit/public:blink", 26 "//third_party/WebKit/public:blink",
23 "//url", 27 "//url",
24 "//v8", 28 "//v8",
25 ] 29 ]
26 30
27 if (cld_version == 0 || cld_version == 2) { 31 if (cld_version == 0 || cld_version == 2) {
28 deps += [ "//third_party/cld_2" ] 32 deps += [ "//third_party/cld_2" ]
29 } 33 }
30 34
31 if (cld2_data_source == "standalone" || cld2_data_source == "component") {
32 sources += [
33 "data_file_renderer_cld_data_provider.cc",
34 "data_file_renderer_cld_data_provider.h",
35 ]
36 } else if (cld2_data_source == "static") {
37 sources += [
38 "static_renderer_cld_data_provider.cc",
39 "static_renderer_cld_data_provider.h",
40 ]
41 }
42 } 35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698