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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: components/translate/content/renderer/BUILD.gn
diff --git a/components/translate/content/renderer/BUILD.gn b/components/translate/content/renderer/BUILD.gn
index db461be40aeb79bda08e2d335f13c603e9d663c4..86440fc40b5ed0366627be67d77bd96772e72ede 100644
--- a/components/translate/content/renderer/BUILD.gn
+++ b/components/translate/content/renderer/BUILD.gn
@@ -6,7 +6,12 @@ import("//build/config/features.gni")
static_library("renderer") {
sources = [
+ "data_file_renderer_cld_data_provider.cc",
+ "data_file_renderer_cld_data_provider.h",
+ "renderer_cld_data_provider.cc",
"renderer_cld_data_provider.h",
+ "renderer_cld_utils.cc",
+ "renderer_cld_utils.h",
"translate_helper.cc",
"translate_helper.h",
]
@@ -28,15 +33,4 @@ static_library("renderer") {
deps += [ "//third_party/cld_2" ]
}
- if (cld2_data_source == "standalone" || cld2_data_source == "component") {
- sources += [
- "data_file_renderer_cld_data_provider.cc",
- "data_file_renderer_cld_data_provider.h",
- ]
- } else if (cld2_data_source == "static") {
- sources += [
- "static_renderer_cld_data_provider.cc",
- "static_renderer_cld_data_provider.h",
- ]
- }
}

Powered by Google App Engine
This is Rietveld 408576698