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

Issue 216923006: Add a component updater for the CLD2 data file. (Closed)

Created:
6 years, 8 months ago by Andrew Hayden (chromium.org)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, Miguel Garcia, bjp_google.com, waffles1, aurimas (slooooooooow), simonb (inactive)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add a component updater for the CLD2 data file. BUG=326023, 367239 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=267181

Patch Set 1 #

Patch Set 2 : Switch to default component installer and traits #

Total comments: 1

Patch Set 3 : Rebase onto master to pic up CLD2 build fix #

Patch Set 4 : Copy component files to user_dir #

Patch Set 5 : Avoid the need for copying the CLD data file #

Patch Set 6 : Style changes and avoid being flagged as leaking by the tools #

Total comments: 19

Patch Set 7 : Address commenter notes #

Total comments: 4

Patch Set 8 : Rebasing onto latest master #

Patch Set 9 : Add some logging, fix the hash, and voila it works. #

Patch Set 10 : Fix nits and clean up comments #

Total comments: 2

Patch Set 11 : Rebase onto latest master #

Total comments: 10

Patch Set 12 : Further nits addresses #

Patch Set 13 : Indent those LTs! #

Patch Set 14 : Rebase onto latest master #

Patch Set 15 : Fix windows file path literals, change android flags back to normal #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -1 line) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/component_updater/cld_component_installer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/component_updater/cld_component_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +157 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/component_unpacker.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/component_updater_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/update_checker.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/component_updater/url_fetcher_downloader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_tab_helper.cc View 1 2 3 4 2 chunks +9 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
A third_party/cld_2/crx_gen/manifest.json View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 64 (0 generated)
Andrew Hayden (chromium.org)
Although this isn't hooked up yet, I want to give folks a chance to get ...
6 years, 8 months ago (2014-04-03 15:25:06 UTC) #1
waffles
On 2014/04/03 15:25:06, Andrew Hayden wrote: > Although this isn't hooked up yet, I want ...
6 years, 8 months ago (2014-04-03 16:31:23 UTC) #2
andrewhayden
No, I wasn't aware of those. Is there an example you would consider particularly correct ...
6 years, 8 months ago (2014-04-03 18:04:30 UTC) #3
waffles
On 2014/04/03 18:04:30, andrewhayden wrote: > No, I wasn't aware of those. Is there an ...
6 years, 8 months ago (2014-04-03 18:14:43 UTC) #4
Andrew Hayden (chromium.org)
On 2014/04/03 18:14:43, waffles wrote: > On 2014/04/03 18:04:30, andrewhayden wrote: > > No, I ...
6 years, 8 months ago (2014-04-04 08:47:49 UTC) #5
waffles
On 2014/04/04 08:47:49, Andrew Hayden wrote: > On 2014/04/03 18:14:43, waffles wrote: > > On ...
6 years, 8 months ago (2014-04-04 16:12:39 UTC) #6
Andrew Hayden (chromium.org)
On 2014/04/04 16:12:39, waffles wrote: > On 2014/04/04 08:47:49, Andrew Hayden wrote: > > On ...
6 years, 8 months ago (2014-04-07 09:45:14 UTC) #7
andrewhayden
Do you guys have any good documentation on testing components? I know I can force ...
6 years, 8 months ago (2014-04-07 13:40:19 UTC) #8
sorin
Andrew, at the moment we use just the usual gtest/gmock combo for local tests. We ...
6 years, 8 months ago (2014-04-07 16:18:26 UTC) #9
Sorin Jianu
Andrew, is this code going to be rewritten to use ComponentInstallerTraits or are we going ...
6 years, 8 months ago (2014-04-07 17:01:17 UTC) #10
andrewhayden
I'm rewriting using ComponentInstallerTraits, but got sidetracked yesterday by sheriffing duties and the fact that ...
6 years, 8 months ago (2014-04-08 09:33:12 UTC) #11
andrewhayden
Sorry for the delay, but I've posted a new patchset: https://codereview.chromium.org/216923006 Still obviously not done, ...
6 years, 8 months ago (2014-04-16 20:07:12 UTC) #12
Andrew Hayden (chromium.org)
https://codereview.chromium.org/216923006/diff/20001/chrome/browser/translate/translate_tab_helper.cc File chrome/browser/translate/translate_tab_helper.cc (right): https://codereview.chromium.org/216923006/diff/20001/chrome/browser/translate/translate_tab_helper.cc#newcode39 chrome/browser/translate/translate_tab_helper.cc:39: #include "chrome/common/chrome_constants.h" This won't be in the final submit; ...
6 years, 8 months ago (2014-04-16 20:08:20 UTC) #13
Andrew Hayden (chromium.org)
I think I'm ready to start testing now.
6 years, 8 months ago (2014-04-17 14:46:14 UTC) #14
Andrew Hayden (chromium.org)
With patchset 5, I think we're in a good place. Aside from the SHA2 hash, ...
6 years, 8 months ago (2014-04-17 16:17:54 UTC) #15
waffles
On 2014/04/17 16:17:54, Andrew Hayden wrote: > With patchset 5, I think we're in a ...
6 years, 8 months ago (2014-04-17 23:40:58 UTC) #16
Andrew Hayden (chromium.org)
On 2014/04/17 23:40:58, waffles wrote: > With respect to the component updater integration, this all ...
6 years, 8 months ago (2014-04-18 08:04:02 UTC) #17
Andrew Hayden (chromium.org)
On 2014/04/18 08:04:02, Andrew Hayden wrote: > CLD2_DYNAMIC_MODE is currently 0 everywhere; it governs whether ...
6 years, 8 months ago (2014-04-18 08:06:25 UTC) #18
Andrew Hayden (chromium.org)
https://codereview.chromium.org/216923006/diff/100001/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/216923006/diff/100001/build/common.gypi#newcode664 build/common.gypi:664: 'cld_version%': 2, These bits should be left unchanged for ...
6 years, 8 months ago (2014-04-18 08:11:17 UTC) #19
Sorin Jianu
Thank you Andrew! https://codereview.chromium.org/216923006/diff/100001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/216923006/diff/100001/chrome/browser/chrome_browser_main.cc#newcode412 chrome/browser/chrome_browser_main.cc:412: #endif Maybe keep the empty line ...
6 years, 8 months ago (2014-04-18 17:46:13 UTC) #20
waffles
https://codereview.chromium.org/216923006/diff/100001/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/216923006/diff/100001/chrome/browser/component_updater/cld_component_installer.cc#newcode44 chrome/browser/component_updater/cld_component_installer.cc:44: // that's used to sign generated CRL sets. Hash ...
6 years, 8 months ago (2014-04-18 17:48:01 UTC) #21
Andrew Hayden (chromium.org)
Comments addressed! PTAL! https://codereview.chromium.org/216923006/diff/100001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/216923006/diff/100001/chrome/browser/chrome_browser_main.cc#newcode412 chrome/browser/chrome_browser_main.cc:412: #endif On 2014/04/18 17:46:14, Sorin Jianu ...
6 years, 8 months ago (2014-04-22 16:10:14 UTC) #22
Andrew Hayden (chromium.org)
+jam/toyoshim at the behest of "git cl upload" OWNERS suggestions.
6 years, 8 months ago (2014-04-22 16:11:14 UTC) #23
Sorin Jianu
Andrew, could you please take another look at the structure that wraps the path? Do ...
6 years, 8 months ago (2014-04-22 17:10:48 UTC) #24
jam
lgtm
6 years, 8 months ago (2014-04-22 17:19:18 UTC) #25
Takashi Toyoshima
LGTM for translate. If you have a meta bug for component updater supporting CLD2, adding ...
6 years, 8 months ago (2014-04-23 00:59:03 UTC) #26
Andrew Hayden (chromium.org)
Here we go... this works on Android. I was able to watch the package download ...
6 years, 8 months ago (2014-04-24 16:56:18 UTC) #27
Sorin Jianu
Sorry, no idea about platforms all. Any progress re: the last few nits we've pointed ...
6 years, 8 months ago (2014-04-24 17:28:40 UTC) #28
Andrew Hayden (chromium.org)
Var names and scopes fixed up, I believe this is ready to go. We will ...
6 years, 8 months ago (2014-04-25 16:10:27 UTC) #29
Sorin Jianu
Thank Andrew, a few more style guide issue (naming and indentation mainly). https://codereview.chromium.org/216923006/diff/180001/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc ...
6 years, 8 months ago (2014-04-25 16:39:40 UTC) #30
Andrew Hayden (chromium.org)
All nits addressed, PTAL again :) https://codereview.chromium.org/216923006/diff/200001/chrome/browser/component_updater/cld_component_installer.cc File chrome/browser/component_updater/cld_component_installer.cc (right): https://codereview.chromium.org/216923006/diff/200001/chrome/browser/component_updater/cld_component_installer.cc#newcode110 chrome/browser/component_updater/cld_component_installer.cc:110: base::FilePath expected_file = ...
6 years, 8 months ago (2014-04-25 17:07:20 UTC) #31
Andrew Hayden (chromium.org)
Whoops, missed the indents. Sigh.
6 years, 8 months ago (2014-04-25 17:08:07 UTC) #32
Andrew Hayden (chromium.org)
OK, for real this time, now with indented less-thans.
6 years, 8 months ago (2014-04-25 17:11:32 UTC) #33
Sorin Jianu
lgtm
6 years, 8 months ago (2014-04-25 17:30:55 UTC) #34
Sorin Jianu
On 2014/04/25 17:30:55, Sorin Jianu wrote: > lgtm Thank you Andrew!
6 years, 8 months ago (2014-04-25 17:31:27 UTC) #35
waffles
lgtm
6 years, 8 months ago (2014-04-25 19:44:19 UTC) #36
Andrew Hayden (chromium.org)
Merge failures on the bots, so I'll rebase and try to land this on Monday.
6 years, 8 months ago (2014-04-25 19:47:57 UTC) #37
Andrew Hayden (chromium.org)
Interesting build failure on the windows bot only: e:\b\build\slave\win\build\src\chrome\browser\component_updater\cld_component_installer.cc(91) : error C2664: 'base::FilePath base::FilePath::Append(const base::FilePath ...
6 years, 7 months ago (2014-04-28 13:21:38 UTC) #38
Sorin Jianu
On 2014/04/28 13:21:38, Andrew Hayden wrote: > Interesting build failure on the windows bot only: ...
6 years, 7 months ago (2014-04-28 16:16:42 UTC) #39
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-29 11:45:54 UTC) #40
Andrew Hayden (chromium.org)
Thanks, Sorin. Done and uploaded, checking the submit box now.
6 years, 7 months ago (2014-04-29 11:46:16 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-29 11:46:17 UTC) #42
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 11:54:57 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium
6 years, 7 months ago (2014-04-29 11:54:58 UTC) #44
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-29 12:23:36 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-29 12:23:53 UTC) #46
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 12:25:54 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 12:25:55 UTC) #48
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-29 12:48:49 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-29 12:48:55 UTC) #50
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 13:37:25 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium
6 years, 7 months ago (2014-04-29 13:37:26 UTC) #52
Andrew Hayden (chromium.org)
Mailed the chrome-troopers@ about the flaking tryjobs and the obviously unrelated host lookup errors in ...
6 years, 7 months ago (2014-04-29 13:40:45 UTC) #53
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-29 13:41:31 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-29 13:41:50 UTC) #55
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 13:48:36 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium
6 years, 7 months ago (2014-04-29 13:48:37 UTC) #57
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-29 13:50:17 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-29 13:50:25 UTC) #59
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 18:50:52 UTC) #60
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium
6 years, 7 months ago (2014-04-29 18:50:53 UTC) #61
Andrew Hayden (chromium.org)
The CQ bit was checked by andrewhayden@chromium.org
6 years, 7 months ago (2014-04-30 11:23:23 UTC) #62
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/andrewhayden@chromium.org/216923006/280001
6 years, 7 months ago (2014-04-30 11:23:38 UTC) #63
commit-bot: I haz the power
6 years, 7 months ago (2014-04-30 11:27:21 UTC) #64
Message was sent while issue was closed.
Change committed as 267181

Powered by Google App Engine
This is Rietveld 408576698