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

Side by Side Diff: components/translate/content/common/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("common") { 7 static_library("common") {
8 sources = [ 8 sources = [
9 "cld_data_source.cc",
10 "cld_data_source.h",
11 "data_file_cld_data_provider_messages.cc",
12 "data_file_cld_data_provider_messages.h",
9 "translate_messages.cc", 13 "translate_messages.cc",
10 "translate_messages.h", 14 "translate_messages.h",
11 "cld_data_source.h",
12 ] 15 ]
13 16
14 deps = [ 17 deps = [
15 "//base", 18 "//base",
16 "//components/translate/core/common", 19 "//components/translate/core/common",
17 "//components/translate/core/language_detection", 20 "//components/translate/core/language_detection",
18 "//content/public/common", 21 "//content/public/common",
19 "//ipc", 22 "//ipc",
20 ] 23 ]
21 24
22 if (cld2_data_source == "standalone" || cld2_data_source == "component") {
23 sources += [
24 "data_file_cld_data_provider_messages.cc",
25 "data_file_cld_data_provider_messages.h",
26 ]
27 }
28 if (cld2_data_source == "standalone") {
29 sources += [ "standalone_cld_data_source.cc" ]
30 }
31 if (cld2_data_source == "component") {
32 sources += [ "component_cld_data_source.cc" ]
33 }
34 if (cld2_data_source == "static") {
35 sources += [ "static_cld_data_source.cc" ]
36 }
37 } 25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698