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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/translate/content/common/BUILD.gn
diff --git a/components/translate/content/common/BUILD.gn b/components/translate/content/common/BUILD.gn
index 44affb39e6d0285ae2b94ddc9bcffe74685bc8bc..bbcdb106b3e41ca69bf6414fbd614310b89b82be 100644
--- a/components/translate/content/common/BUILD.gn
+++ b/components/translate/content/common/BUILD.gn
@@ -6,9 +6,12 @@ import("//build/config/features.gni")
static_library("common") {
sources = [
+ "cld_data_source.cc",
+ "cld_data_source.h",
+ "data_file_cld_data_provider_messages.cc",
+ "data_file_cld_data_provider_messages.h",
"translate_messages.cc",
"translate_messages.h",
- "cld_data_source.h",
]
deps = [
@@ -19,19 +22,4 @@ static_library("common") {
"//ipc",
]
- if (cld2_data_source == "standalone" || cld2_data_source == "component") {
- sources += [
- "data_file_cld_data_provider_messages.cc",
- "data_file_cld_data_provider_messages.h",
- ]
- }
- if (cld2_data_source == "standalone") {
- sources += [ "standalone_cld_data_source.cc" ]
- }
- if (cld2_data_source == "component") {
- sources += [ "component_cld_data_source.cc" ]
- }
- if (cld2_data_source == "static") {
- sources += [ "static_cld_data_source.cc" ]
- }
}

Powered by Google App Engine
This is Rietveld 408576698