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

Side by Side 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 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("browser") { 7 static_library("browser") {
8 sources = [ 8 sources = [
9 "browser_cld_data_provider_factory.cc",
10 "browser_cld_data_provider_factory.h",
11 "browser_cld_data_provider.cc",
9 "browser_cld_data_provider.h", 12 "browser_cld_data_provider.h",
13 "browser_cld_utils.cc",
14 "browser_cld_utils.h",
10 "content_translate_driver.cc", 15 "content_translate_driver.cc",
11 "content_translate_driver.h", 16 "content_translate_driver.h",
17 "data_file_browser_cld_data_provider.cc",
18 "data_file_browser_cld_data_provider.h",
12 ] 19 ]
13 20
14 deps = [ 21 deps = [
15 "//base", 22 "//base",
16 "//components/translate/core/browser", 23 "//components/translate/core/browser",
17 "//content/public/browser", 24 "//content/public/browser",
18 ] 25 ]
19 26
20 if (cld2_data_source == "standalone" || cld2_data_source == "component") {
21 sources += [
22 "data_file_browser_cld_data_provider.cc",
23 "data_file_browser_cld_data_provider.h",
24 ]
25 } else if (cld2_data_source == "static") {
26 sources += [
27 "static_browser_cld_data_provider.cc",
28 "static_browser_cld_data_provider.h",
29 ]
30 }
31 } 27 }
OLDNEW
« 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