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

Unified Diff: components/translate/content/browser/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
« no previous file with comments | « components/translate.gypi ('k') | components/translate/content/browser/browser_cld_data_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/translate/content/browser/BUILD.gn
diff --git a/components/translate/content/browser/BUILD.gn b/components/translate/content/browser/BUILD.gn
index d94c3387f5a4e56ca0524e88546fa254e044638e..1cc19234c7b5554fe7d8f7e3c4599fb2e9baffa1 100644
--- a/components/translate/content/browser/BUILD.gn
+++ b/components/translate/content/browser/BUILD.gn
@@ -6,9 +6,16 @@ import("//build/config/features.gni")
static_library("browser") {
sources = [
+ "browser_cld_data_provider_factory.cc",
+ "browser_cld_data_provider_factory.h",
+ "browser_cld_data_provider.cc",
"browser_cld_data_provider.h",
+ "browser_cld_utils.cc",
+ "browser_cld_utils.h",
"content_translate_driver.cc",
"content_translate_driver.h",
+ "data_file_browser_cld_data_provider.cc",
+ "data_file_browser_cld_data_provider.h",
]
deps = [
@@ -17,15 +24,4 @@ static_library("browser") {
"//content/public/browser",
]
- if (cld2_data_source == "standalone" || cld2_data_source == "component") {
- sources += [
- "data_file_browser_cld_data_provider.cc",
- "data_file_browser_cld_data_provider.h",
- ]
- } else if (cld2_data_source == "static") {
- sources += [
- "static_browser_cld_data_provider.cc",
- "static_browser_cld_data_provider.h",
- ]
- }
}
« no previous file with comments | « components/translate.gypi ('k') | components/translate/content/browser/browser_cld_data_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698