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

Issue 516293007: Enable forced extension updates on NaCl arch mismatch (Closed)

Created:
6 years, 3 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, waffles, Nick Bray (chromium)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Enable forced extension updates on NaCl arch mismatch This makes extensions aware of the platforms for which they have platform-specific resources installed, if any. This also hooks up the extension update code with some additional logic to place an extension in forced-update mode if it has platform-specific resources which don't match the current NaCl architecture. BUG=409948 TEST=install an extension which uses NaCl (QuickOffice for example). Rename the _platform-specific/<your-nacl-arch> directory some something else and force an update (e.g. via chrome://extensions button). Observe that a new CRX is downloaded and installed. Committed: https://crrev.com/43ae1fb32df63bfd42c13914feb6a71f111fccb3 Cr-Commit-Position: refs/heads/master@{#293018}

Patch Set 1 #

Patch Set 2 : Clean-up per discussed solution #

Total comments: 14

Patch Set 3 : address comments, cleanup naming #

Patch Set 4 : address more comments #

Patch Set 5 : Oops - include unit test changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -36 lines) Patch
M chrome/browser/extensions/updater/extension_downloader.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/updater/extension_downloader.cc View 1 2 3 4 11 chunks +48 lines, -18 lines 0 comments Download
M chrome/browser/extensions/updater/extension_updater_unittest.cc View 1 2 3 4 10 chunks +18 lines, -14 lines 0 comments Download
M chrome/browser/extensions/updater/manifest_fetch_data.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/extensions/updater/manifest_fetch_data.cc View 1 2 3 2 chunks +14 lines, -2 lines 0 comments Download
M extensions/common/extension.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/common/extension.cc View 1 2 4 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (7 generated)
Sorin Jianu
Thank you Ken!
6 years, 3 months ago (2014-08-30 03:28:01 UTC) #2
Ken Rockot(use gerrit already)
Ok - Cleaned this up in accordance with the recent discussion about how to handle ...
6 years, 3 months ago (2014-09-02 18:30:07 UTC) #3
Ken Rockot(use gerrit already)
Yawzzz, could you please take a look?
6 years, 3 months ago (2014-09-02 19:11:18 UTC) #5
Yoyo Zhou
LGTM with nits https://chromiumcodereview.appspot.com/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc File chrome/browser/extensions/updater/extension_downloader.cc (right): https://chromiumcodereview.appspot.com/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc#newcode674 chrome/browser/extensions/updater/extension_downloader.cc:674: if (!fetch_data.DidForceUpdate(id)) { This could be ...
6 years, 3 months ago (2014-09-02 19:30:04 UTC) #6
Ken Rockot(use gerrit already)
Thanks. https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc File chrome/browser/extensions/updater/extension_downloader.cc (right): https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc#newcode674 chrome/browser/extensions/updater/extension_downloader.cc:674: if (!fetch_data.DidForceUpdate(id)) { On 2014/09/02 19:30:04, Yoyo Zhou ...
6 years, 3 months ago (2014-09-02 20:04:30 UTC) #7
Sorin Jianu
Thank you Ken! https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc File chrome/browser/extensions/updater/extension_downloader.cc (right): https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc#newcode220 chrome/browser/extensions/updater/extension_downloader.cc:220: if (extension.HasPlatformSpecificResources() && Do we need ...
6 years, 3 months ago (2014-09-02 20:06:39 UTC) #9
Ken Rockot(use gerrit already)
Thanks for the additional comments; replies inline https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc File chrome/browser/extensions/updater/extension_downloader.cc (right): https://codereview.chromium.org/516293007/diff/40001/chrome/browser/extensions/updater/extension_downloader.cc#newcode220 chrome/browser/extensions/updater/extension_downloader.cc:220: if (extension.HasPlatformSpecificResources() ...
6 years, 3 months ago (2014-09-02 20:19:21 UTC) #11
Sorin Jianu
lgtm Thank you Ken!
6 years, 3 months ago (2014-09-02 20:23:16 UTC) #12
Sorin Jianu
lgtm Thank you Ken!
6 years, 3 months ago (2014-09-02 20:23:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/516293007/80001
6 years, 3 months ago (2014-09-02 20:28:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/516293007/100001
6 years, 3 months ago (2014-09-02 21:09:38 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-09-02 22:08:31 UTC) #18
commit-bot: I haz the power
Committed patchset #5 (id:100001) as 4a92281fa5d331860d65a59ba45dc882a5c71df4
6 years, 3 months ago (2014-09-02 23:15:28 UTC) #19
Shu Chen
This cl caused linux_chromeos crash on start: shuchen@chenshu:~/chrome/src$ out/Release/chrome --user-data-dir=~/.config/cros --login-manager [25056:25056:0903/125913:ERROR:sandbox_linux.cc(305)] InitializeSandbox() called with ...
6 years, 3 months ago (2014-09-03 07:14:45 UTC) #21
dzhioev (left Google)
A revert of this CL (patchset #5 id:100001) has been created in https://codereview.chromium.org/532183003/ by dzhioev@chromium.org. ...
6 years, 3 months ago (2014-09-03 12:44:40 UTC) #22
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:21:44 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/43ae1fb32df63bfd42c13914feb6a71f111fccb3
Cr-Commit-Position: refs/heads/master@{#293018}

Powered by Google App Engine
This is Rietveld 408576698