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

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: Make some of the harness factory methods private Created 6 years, 1 month 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",
11 "renderer_cld_data_provider.cc",
9 "renderer_cld_data_provider.h", 12 "renderer_cld_data_provider.h",
13 "renderer_cld_utils.cc",
14 "renderer_cld_utils.h",
10 "translate_helper.cc", 15 "translate_helper.cc",
11 "translate_helper.h", 16 "translate_helper.h",
12 ] 17 ]
13 18
14 deps = [ 19 deps = [
15 "//base", 20 "//base",
16 "//components/translate/content/common", 21 "//components/translate/content/common",
17 "//components/translate/core/common", 22 "//components/translate/core/common",
18 "//components/translate/core/language_detection", 23 "//components/translate/core/language_detection",
19 "//content/public/common", 24 "//content/public/common",
20 "//content/public/renderer", 25 "//content/public/renderer",
21 "//ipc", 26 "//ipc",
22 "//third_party/WebKit/public:blink", 27 "//third_party/WebKit/public:blink",
23 "//url", 28 "//url",
24 "//v8", 29 "//v8",
25 ] 30 ]
26 31
27 if (cld_version == 0 || cld_version == 2) { 32 if (cld_version == 0 || cld_version == 2) {
28 deps += [ "//third_party/cld_2" ] 33 deps += [ "//third_party/cld_2" ]
29 } 34 }
30 35
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 } 36 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698