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

Issue 2034413003: Delete the non-static CLD data source logic. (Closed)

Created:
4 years, 6 months ago by Andrew Hayden (chromium.org)
Modified:
4 years, 6 months ago
CC:
aboxhall+watch_chromium.org, arv+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, extensions-reviews_chromium.org, jam, je_julie, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nektar+watch_chromium.org, oshima+watch_chromium.org, rginda+watch_chromium.org, tfarina, yuzo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Delete the non-static CLD data source logic. This obviates the following instructions, which also explain the concept: https://www.chromium.org/developers/how-tos/compact-language-detector-cld-data-source-configuration Basically, nobody ever used the non-static CLD data source and it was a bunch of dead code hanging around that needed to be maintained. There is no plan to use anything other than static linking for CLD at this point. CLD2 is in maintenance mode at this point and will not be receiving any further improvements. As we look to its replacement, the first step is to simplify all the code for dealing with CLD. This is a spiritual revert of this old CL: https://codereview.chromium.org/461633002/ It was impossible to directly revert due to changes that have entered the codebase over the past 18 months, but in principle undoes it all. BUG=367239 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/1e7cf43d74e1343cb4ad64901297040a2cfdfef0 Cr-Commit-Position: refs/heads/master@{#398851}

Patch Set 1 #

Patch Set 2 : Fix gypi target #

Patch Set 3 : Fix a few lingering build issues #

Patch Set 4 : Update description and fix BUILD.gn formatting #

Patch Set 5 : Fix app shell gyp/gn #

Total comments: 7

Patch Set 6 : Address thakis@'s comments #

Total comments: 2

Patch Set 7 : toyoshim@'s comments and unit test ctor fix #

Patch Set 8 : rebase to latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3015 lines) Patch
M BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/android/chrome_apk.gyp View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -11 lines 0 comments Download
D chrome/browser/component_updater/cld_component_installer.h View 1 chunk +0 lines, -79 lines 0 comments Download
D chrome/browser/component_updater/cld_component_installer.cc View 1 chunk +0 lines, -149 lines 0 comments Download
D chrome/browser/component_updater/cld_component_installer_unittest.cc View 1 chunk +0 lines, -140 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/chromeos/chromevox/chromevox_tests.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/translate_internals/prefs.html View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 3 chunks +0 lines, -31 lines 0 comments Download
D chrome/browser/translate/cld_data_harness.h View 1 chunk +0 lines, -113 lines 0 comments Download
D chrome/browser/translate/cld_data_harness.cc View 1 chunk +0 lines, -65 lines 0 comments Download
D chrome/browser/translate/cld_data_harness_factory.h View 1 chunk +0 lines, -76 lines 0 comments Download
D chrome/browser/translate/cld_data_harness_factory.cc View 1 chunk +0 lines, -107 lines 0 comments Download
D chrome/browser/translate/component_cld_data_harness.h View 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/browser/translate/component_cld_data_harness.cc View 1 chunk +0 lines, -95 lines 0 comments Download
D chrome/browser/translate/standalone_cld_data_harness.h View 1 chunk +0 lines, -32 lines 0 comments Download
D chrome/browser/translate/standalone_cld_data_harness.cc View 1 chunk +0 lines, -76 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc View 1 2 6 2 chunks +1 line, -9 lines 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 6 chunks +0 lines, -19 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 7 chunks +0 lines, -16 lines 0 comments Download
M chrome/test/base/chrome_unit_test_suite.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M components/translate.gypi View 3 chunks +0 lines, -20 lines 0 comments Download
M components/translate/content/browser/BUILD.gn View 1 chunk +0 lines, -8 lines 0 comments Download
D components/translate/content/browser/browser_cld_data_provider.h View 1 chunk +0 lines, -72 lines 0 comments Download
D components/translate/content/browser/browser_cld_data_provider.cc View 1 chunk +0 lines, -17 lines 0 comments Download
D components/translate/content/browser/browser_cld_data_provider_factory.h View 1 chunk +0 lines, -73 lines 0 comments Download
D components/translate/content/browser/browser_cld_data_provider_factory.cc View 1 chunk +0 lines, -59 lines 0 comments Download
D components/translate/content/browser/browser_cld_utils.h View 1 chunk +0 lines, -36 lines 0 comments Download
D components/translate/content/browser/browser_cld_utils.cc View 1 chunk +0 lines, -41 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.h View 2 chunks +0 lines, -4 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.cc View 3 chunks +0 lines, -11 lines 0 comments Download
D components/translate/content/browser/data_file_browser_cld_data_provider.h View 1 chunk +0 lines, -53 lines 0 comments Download
D components/translate/content/browser/data_file_browser_cld_data_provider.cc View 1 chunk +0 lines, -242 lines 0 comments Download
M components/translate/content/common/BUILD.gn View 1 chunk +0 lines, -4 lines 0 comments Download
D components/translate/content/common/cld_data_source.h View 1 chunk +0 lines, -135 lines 0 comments Download
D components/translate/content/common/cld_data_source.cc View 1 chunk +0 lines, -112 lines 0 comments Download
D components/translate/content/common/data_file_cld_data_provider_messages.h View 1 chunk +0 lines, -38 lines 0 comments Download
D components/translate/content/common/data_file_cld_data_provider_messages.cc View 1 chunk +0 lines, -43 lines 0 comments Download
M components/translate/content/renderer/BUILD.gn View 1 chunk +0 lines, -8 lines 0 comments Download
D components/translate/content/renderer/data_file_renderer_cld_data_provider.h View 1 chunk +0 lines, -58 lines 0 comments Download
D components/translate/content/renderer/data_file_renderer_cld_data_provider.cc View 1 chunk +0 lines, -126 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_data_provider.h View 1 chunk +0 lines, -78 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_data_provider.cc View 1 chunk +0 lines, -30 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_data_provider_factory.h View 1 chunk +0 lines, -74 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_data_provider_factory.cc View 1 chunk +0 lines, -60 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_utils.h View 1 chunk +0 lines, -39 lines 0 comments Download
D components/translate/content/renderer/renderer_cld_utils.cc View 1 chunk +0 lines, -42 lines 0 comments Download
M components/translate/content/renderer/translate_helper.h View 1 2 5 chunks +0 lines, -84 lines 0 comments Download
M components/translate/content/renderer/translate_helper.cc View 1 2 9 chunks +0 lines, -154 lines 0 comments Download
M components/translate/core/language_detection/BUILD.gn View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M extensions/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/BUILD.gn View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M extensions/shell/app_shell.gyp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ipc/ipc_message_start.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M third_party/cld_2/BUILD.gn View 4 chunks +2 lines, -96 lines 0 comments Download
M third_party/cld_2/cld_2.gyp View 1 4 chunks +0 lines, -95 lines 0 comments Download
M tools/ipc_fuzzer/message_tools/message_list.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 26 (11 generated)
Andrew Hayden (chromium.org)
jam: BUILD.gn chrome/BUILD.gn chrome/android/chrome_apk.gyp chrome/browser/chrome_browser_main.cc chrome/browser/component_updater/cld_component_installer.cc chrome/browser/component_updater/cld_component_installer.h chrome/browser/component_updater/cld_component_installer_unittest.cc chrome/browser/policy/policy_browsertest.cc chrome/browser/resources/chromeos/chromevox/BUILD.gn chrome/browser/resources/chromeos/chromevox/chromevox_tests.gypi chrome/browser/ui/browser_browsertest.cc chrome/chrome.gyp chrome/test/base/chrome_unit_test_suite.cc extensions/BUILD.gn ...
4 years, 6 months ago (2016-06-08 13:18:43 UTC) #4
Nico
everything except content and extensions (don't have powers there) lgtm https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc File chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc (right): https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc#newcode25 ...
4 years, 6 months ago (2016-06-08 14:44:07 UTC) #6
Andrew Hayden (chromium.org)
https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc File chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc (right): https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc#newcode25 chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc:25: TranslateBubbleViewBrowserTest() {} On 2016/06/08 14:44:07, Nico wrote: > just ...
4 years, 6 months ago (2016-06-08 14:50:50 UTC) #7
jam
lgtm
4 years, 6 months ago (2016-06-08 16:10:48 UTC) #8
Takashi Toyoshima
lgtm if build issues are fixed. https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc File chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc (right): https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc#newcode25 chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc:25: TranslateBubbleViewBrowserTest() {} Does ...
4 years, 6 months ago (2016-06-09 07:21:28 UTC) #9
Takashi Toyoshima
Oops, I find one nit. Could you please fix this before submitting this? https://codereview.chromium.org/2034413003/diff/100001/chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc File ...
4 years, 6 months ago (2016-06-09 07:35:47 UTC) #10
Andrew Hayden (chromium.org)
> https://codereview.chromium.org/2034413003/diff/80001/chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc#newcode25 > chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc:25: > TranslateBubbleViewBrowserTest() {} > On 2016/06/08 14:44:07, Nico wrote: > > ...
4 years, 6 months ago (2016-06-09 09:34:14 UTC) #11
Andrew Hayden (chromium.org)
https://codereview.chromium.org/2034413003/diff/100001/chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc File chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc (left): https://codereview.chromium.org/2034413003/diff/100001/chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc#oldcode70 chrome/browser/ui/webui/translate_internals/translate_internals_ui.cc:70: source->AddString("cld-data-source", cld_data_source); On 2016/06/09 07:35:46, Takashi Toyoshima wrote: > ...
4 years, 6 months ago (2016-06-09 09:37:29 UTC) #12
Takashi Toyoshima
lgtm
4 years, 6 months ago (2016-06-09 09:44:26 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034413003/140001
4 years, 6 months ago (2016-06-09 11:10:23 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/197919)
4 years, 6 months ago (2016-06-09 11:17:54 UTC) #18
Mike West
Deleting IPC LGTM!
4 years, 6 months ago (2016-06-09 12:01:19 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2034413003/140001
4 years, 6 months ago (2016-06-09 12:36:35 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 6 months ago (2016-06-09 12:41:43 UTC) #24
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 12:42:57 UTC) #26
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1e7cf43d74e1343cb4ad64901297040a2cfdfef0
Cr-Commit-Position: refs/heads/master@{#398851}

Powered by Google App Engine
This is Rietveld 408576698