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

Issue 424053002: Add a new "Configure" mechanism to CLD browser-side data interfaces. (Closed)

Created:
6 years, 4 months ago by Andrew Hayden (chromium.org)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, rginda+watch_chromium.org, jam, yoshiki+watch_chromium.org, cpu_(ooo_6.6-7.5), Sorin Jianu, waffles
Project:
chromium
Visibility:
Public.

Description

Add a new "Configure" mechanism to CLD browser-side data interfaces. This allows test code to be included all the time, regardless of whether a non-static CLD build is in use. It also decouples sources from needing to include an implementation-specific header to configure CLD, which eliminates much of the need for the "#if defined" statements in code. Coupled with the new CldDataSource (see related bug), this will allow a significant refactoring of the build logic which will make it possible to build chrome_shell and other targets with target-specific CLD configurations. BUG=367239 TBR=toyoshim@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286430

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Leaky lazy last file path #

Total comments: 2

Patch Set 5 : Rebase now that dependencies have landed #

Total comments: 1

Patch Set 6 : address comments, simplify configuration mechanism #

Total comments: 1

Patch Set 7 : sorin@'s comments #

Total comments: 2

Patch Set 8 : sorin@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -45 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 2 chunks +1 line, -4 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/test/cld_component_installer_unittest.cc View 1 2 3 4 5 4 chunks +10 lines, -9 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 2 chunks +1 line, -5 lines 0 comments Download
M components/translate/content/browser/browser_cld_data_provider.h View 1 2 3 4 5 2 chunks +19 lines, -1 line 0 comments Download
M components/translate/content/browser/data_file_browser_cld_data_provider.h View 1 2 3 4 5 1 chunk +0 lines, -13 lines 0 comments Download
M components/translate/content/browser/data_file_browser_cld_data_provider.cc View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M components/translate/content/browser/static_browser_cld_data_provider.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Andrew Hayden (chromium.org)
For posterity the CLD data source work is here: https://codereview.chromium.org/422843009
6 years, 4 months ago (2014-07-29 08:11:52 UTC) #1
Andrew Hayden (chromium.org)
Exposed a bug in default_component_installer.h, fix is here: https://codereview.chromium.org/422253002/
6 years, 4 months ago (2014-07-29 10:54:18 UTC) #2
simonb1
lgtm
6 years, 4 months ago (2014-07-29 13:13:22 UTC) #3
Sorin Jianu
Thank you Andrew! https://codereview.chromium.org/424053002/diff/60001/chrome/browser/component_updater/cld_component_installer.h File chrome/browser/component_updater/cld_component_installer.h (right): https://codereview.chromium.org/424053002/diff/60001/chrome/browser/component_updater/cld_component_installer.h#newcode63 chrome/browser/component_updater/cld_component_installer.h:63: // Allows testing code to detect ...
6 years, 4 months ago (2014-07-29 17:56:56 UTC) #4
jam
https://codereview.chromium.org/424053002/diff/80001/components/translate/content/browser/browser_cld_data_provider.h File components/translate/content/browser/browser_cld_data_provider.h (right): https://codereview.chromium.org/424053002/diff/80001/components/translate/content/browser/browser_cld_data_provider.h#newcode80 components/translate/content/browser/browser_cld_data_provider.h:80: // ensure that the correct type of object is ...
6 years, 4 months ago (2014-07-29 19:51:27 UTC) #5
Andrew Hayden (chromium.org)
https://codereview.chromium.org/424053002/diff/60001/chrome/browser/component_updater/cld_component_installer.h File chrome/browser/component_updater/cld_component_installer.h (right): https://codereview.chromium.org/424053002/diff/60001/chrome/browser/component_updater/cld_component_installer.h#newcode63 chrome/browser/component_updater/cld_component_installer.h:63: // Allows testing code to detect the file path ...
6 years, 4 months ago (2014-07-29 19:51:55 UTC) #6
Andrew Hayden (chromium.org)
On 2014/07/29 19:51:27, jam wrote: > https://codereview.chromium.org/424053002/diff/80001/components/translate/content/browser/browser_cld_data_provider.h > File components/translate/content/browser/browser_cld_data_provider.h (right): > > https://codereview.chromium.org/424053002/diff/80001/components/translate/content/browser/browser_cld_data_provider.h#newcode80 > ...
6 years, 4 months ago (2014-07-29 19:59:01 UTC) #7
Andrew Hayden (chromium.org)
On 2014/07/29 19:59:01, Andrew Hayden wrote: > On 2014/07/29 19:51:27, jam wrote: > > > ...
6 years, 4 months ago (2014-07-29 22:06:24 UTC) #8
jam
lgtm
6 years, 4 months ago (2014-07-29 22:40:37 UTC) #9
Sorin Jianu
Thank you Andrew! https://codereview.chromium.org/424053002/diff/100001/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/424053002/diff/100001/chrome/browser/component_updater/cld_component_installer.cc#newcode31 chrome/browser/component_updater/cld_component_installer.cc:31: base::LazyInstance<base::FilePath>::Leaky g_latest_cld_data_file_for_test = Is this still ...
6 years, 4 months ago (2014-07-29 22:42:36 UTC) #10
Andrew Hayden (chromium.org)
On 2014/07/29 22:42:36, Sorin Jianu wrote: > Thank you Andrew! > > https://codereview.chromium.org/424053002/diff/100001/chrome/browser/component_updater/cld_component_installer.cc > File ...
6 years, 4 months ago (2014-07-29 22:46:28 UTC) #11
Andrew Hayden (chromium.org)
TBR'ing toyoshim@, per his request (he doesn't have time for a few days)
6 years, 4 months ago (2014-07-29 22:47:29 UTC) #12
Sorin Jianu
lgtm component updater. https://codereview.chromium.org/424053002/diff/120001/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/424053002/diff/120001/chrome/browser/component_updater/cld_component_installer.cc#newcode128 chrome/browser/component_updater/cld_component_installer.cc:128: return *g_latest_cld_data_file.Pointer(); Seems the lazy instance ...
6 years, 4 months ago (2014-07-29 23:08:06 UTC) #13
Andrew Hayden (chromium.org)
On 2014/07/29 23:08:06, Sorin Jianu wrote: > lgtm component updater. > > https://codereview.chromium.org/424053002/diff/120001/chrome/browser/component_updater/cld_component_installer.cc > File ...
6 years, 4 months ago (2014-07-29 23:16:03 UTC) #14
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 4 months ago (2014-07-29 23:18:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/424053002/140001
6 years, 4 months ago (2014-07-29 23:20:33 UTC) #16
commit-bot: I haz the power
6 years, 4 months ago (2014-07-30 07:13:47 UTC) #17
Message was sent while issue was closed.
Change committed as 286430

Powered by Google App Engine
This is Rietveld 408576698