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 424123003: Replace the use of CLD_DATA_FROM* and CLD-related ifdefs with runtime checks. (Closed)

Created:
6 years, 4 months ago by Andrew Hayden (chromium.org)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, waffles
Project:
chromium
Visibility:
Public.

Description

Replace the use of CLD_DATA_FROM* and CLD-related ifdefs with runtime checks. This, along with other changes described in crbug/367239, allows refactoring of the build logic to allow per-target customization of the CLD data source. This, in turn, allows chrome_shell to be built with statically-linked CLD even if other things (such as the full browser) are not. BUG=367239 TBR=toyoshim@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286487

Patch Set 1 #

Total comments: 3

Patch Set 2 : Sorin's comments #

Patch Set 3 : Rebase (simplified configuration mechanism) #

Patch Set 4 : Rebase #

Total comments: 1

Patch Set 5 : sorin@'s comment #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -54 lines) Patch
M build/common.gypi View 1 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/component_updater/cld_component_installer.cc View 1 2 3 4 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 2 5 chunks +19 lines, -26 lines 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc View 3 chunks +2 lines, -6 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M components/translate/content/common/cld_data_source.h View 1 1 chunk +16 lines, -1 line 0 comments Download
M components/translate/content/common/component_cld_data_source.cc View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M components/translate/content/common/standalone_cld_data_source.cc View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download
M components/translate/content/common/static_cld_data_source.cc View 1 2 3 4 1 chunk +11 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Andrew Hayden (chromium.org)
Depends upon: 1. [Landed] https://codereview.chromium.org/422843009 2. [Trying] https://codereview.chromium.org/422253002 3. [Review] https://codereview.chromium.org/424053002
6 years, 4 months ago (2014-07-29 15:12:27 UTC) #1
jochen (gone - plz use gerrit)
lgtm https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc#newcode112 chrome/browser/component_updater/cld_component_installer.cc:112: LOG(ERROR) << "Wrong CLD data source: " << ...
6 years, 4 months ago (2014-07-29 15:30:01 UTC) #2
Andrew Hayden (chromium.org)
On 2014/07/29 15:30:01, jochen wrote: > lgtm > > https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc > File chrome/browser/component_updater/cld_component_installer.cc (right): > ...
6 years, 4 months ago (2014-07-29 15:52:33 UTC) #3
Sorin Jianu
Thank you Andrew! https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc#newcode109 chrome/browser/component_updater/cld_component_installer.cc:109: // Make sure we don't start ...
6 years, 4 months ago (2014-07-29 18:04:48 UTC) #4
Andrew Hayden (chromium.org)
On 2014/07/29 18:04:48, Sorin Jianu wrote: > Thank you Andrew! > > https://codereview.chromium.org/424123003/diff/1/chrome/browser/component_updater/cld_component_installer.cc > File ...
6 years, 4 months ago (2014-07-29 20:47:38 UTC) #5
Andrew Hayden (chromium.org)
On 2014/07/29 20:47:38, Andrew Hayden wrote: > On 2014/07/29 18:04:48, Sorin Jianu wrote: > > ...
6 years, 4 months ago (2014-07-29 22:03:24 UTC) #6
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:34 UTC) #7
Sorin Jianu
lgtm component updater files https://codereview.chromium.org/424123003/diff/60001/components/translate/content/common/component_cld_data_source.cc File components/translate/content/common/component_cld_data_source.cc (right): https://codereview.chromium.org/424123003/diff/60001/components/translate/content/common/component_cld_data_source.cc#newcode9 components/translate/content/common/component_cld_data_source.cc:9: std::string CldDataSource::GetName() { These lines ...
6 years, 4 months ago (2014-07-29 23:12:54 UTC) #8
Andrew Hayden (chromium.org)
On 2014/07/29 23:12:54, Sorin Jianu wrote: > lgtm component updater files > > https://codereview.chromium.org/424123003/diff/60001/components/translate/content/common/component_cld_data_source.cc > ...
6 years, 4 months ago (2014-07-29 23:18:18 UTC) #9
Andrew Hayden (chromium.org)
On 2014/07/29 23:18:18, Andrew Hayden wrote: > On 2014/07/29 23:12:54, Sorin Jianu wrote: > > ...
6 years, 4 months ago (2014-07-29 23:45:56 UTC) #10
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 4 months ago (2014-07-30 07:25:52 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/424123003/100001
6 years, 4 months ago (2014-07-30 07:28:10 UTC) #12
commit-bot: I haz the power
6 years, 4 months ago (2014-07-30 11:56:34 UTC) #13
Message was sent while issue was closed.
Change committed as 286487

Powered by Google App Engine
This is Rietveld 408576698