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

Issue 389613006: Prevent duplicate concurrent installs of the same extension (Closed)

Created:
6 years, 5 months ago by tmdiep
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Prevent duplicate concurrent installs of the same extension This patch stores the state of active installs in the InstallTracker for global access. This allows various install initiators to check for duplicate installs before proceeding. Install progress bars in the app launcher can be initialized with the state of an active install. BUG=393854 TEST=unit_tests, browser_tests For manual testing steps, please see bug. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284014

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use ScopedActiveInstall to auto deregister install #

Patch Set 3 : Self nits #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Address tapted's comments #

Patch Set 6 : Fixed rebase #

Total comments: 1

Patch Set 7 : Fixed ScopedActiveInstall and Rebase #

Patch Set 8 : Unit tests for ScopedActiveInstall and Rebase #

Patch Set 9 : Fixed update of webstore_result #

Unified diffs Side-by-side diffs Delta from patch set Stats (+608 lines, -119 lines) Patch
M chrome/browser/apps/ephemeral_app_launcher.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher.cc View 1 2 3 4 5 6 4 chunks +26 lines, -9 lines 0 comments Download
M chrome/browser/apps/ephemeral_app_launcher_browsertest.cc View 1 4 chunks +26 lines, -0 lines 0 comments Download
A chrome/browser/extensions/active_install_data.h View 1 2 3 4 5 6 7 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/browser/extensions/active_install_data.cc View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 12 chunks +18 lines, -70 lines 0 comments Download
M chrome/browser/extensions/install_tracker.h View 1 2 3 4 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/extensions/install_tracker.cc View 1 2 3 5 chunks +62 lines, -9 lines 0 comments Download
A chrome/browser/extensions/install_tracker_unittest.cc View 1 2 3 4 5 6 7 1 chunk +213 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_install_result.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.h View 1 4 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_standalone_installer.cc View 1 2 3 4 5 6 7 5 chunks +42 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.h View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/ui/app_list/search/webstore/webstore_result.cc View 1 2 3 4 5 6 7 8 6 chunks +22 lines, -18 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/webstore_private.json View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_common.js View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/ephemeral_launcher/webstore_launch_app.js View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
tmdiep
webstore_private_api.cc had a registry of pending installs to prevent duplicate installs from the webstore, but ...
6 years, 5 months ago (2014-07-15 05:18:35 UTC) #1
tmdiep
Do you think we need to handle duplicate installs in the bundle installer?
6 years, 5 months ago (2014-07-15 06:14:06 UTC) #2
asargent_no_longer_on_chrome
On 2014/07/15 06:14:06, tmdiep wrote: > Do you think we need to handle duplicate installs ...
6 years, 5 months ago (2014-07-16 18:48:45 UTC) #3
asargent_no_longer_on_chrome
https://codereview.chromium.org/389613006/diff/1/chrome/browser/apps/ephemeral_app_launcher.h File chrome/browser/apps/ephemeral_app_launcher.h (right): https://codereview.chromium.org/389613006/diff/1/chrome/browser/apps/ephemeral_app_launcher.h#newcode120 chrome/browser/apps/ephemeral_app_launcher.h:120: install_data) const OVERRIDE; nit: formatting looks weird, maybe > ...
6 years, 5 months ago (2014-07-16 18:49:07 UTC) #4
tmdiep
https://codereview.chromium.org/389613006/diff/1/chrome/browser/apps/ephemeral_app_launcher.h File chrome/browser/apps/ephemeral_app_launcher.h (right): https://codereview.chromium.org/389613006/diff/1/chrome/browser/apps/ephemeral_app_launcher.h#newcode120 chrome/browser/apps/ephemeral_app_launcher.h:120: install_data) const OVERRIDE; On 2014/07/16 18:49:07, Antony Sargent wrote: ...
6 years, 5 months ago (2014-07-17 01:01:52 UTC) #5
tmdiep
tapted: Please review app_list/webstore_result. Thanks.
6 years, 5 months ago (2014-07-17 01:03:40 UTC) #6
tapted
On 2014/07/17 01:03:40, tmdiep wrote: > tapted: Please review app_list/webstore_result. Thanks. nice change - I ...
6 years, 5 months ago (2014-07-17 02:03:55 UTC) #7
tmdiep
https://codereview.chromium.org/389613006/diff/50001/chrome/browser/ui/app_list/search/webstore/webstore_result.cc File chrome/browser/ui/app_list/search/webstore/webstore_result.cc (right): https://codereview.chromium.org/389613006/diff/50001/chrome/browser/ui/app_list/search/webstore/webstore_result.cc#newcode129 chrome/browser/ui/app_list/search/webstore/webstore_result.cc:129: void WebstoreResult::SetInitialState() { On 2014/07/17 02:03:55, tapted wrote: > ...
6 years, 5 months ago (2014-07-17 03:37:52 UTC) #8
tapted
On 2014/07/17 03:37:52, tmdiep wrote: > Done. Hopefully I understood you correctly :) yep! app_list ...
6 years, 5 months ago (2014-07-17 03:47:30 UTC) #9
asargent_no_longer_on_chrome
https://codereview.chromium.org/389613006/diff/120001/chrome/browser/extensions/active_install_data.cc File chrome/browser/extensions/active_install_data.cc (right): https://codereview.chromium.org/389613006/diff/120001/chrome/browser/extensions/active_install_data.cc#newcode44 chrome/browser/extensions/active_install_data.cc:44: InstallTracker* tracker = InstallTracker::Get(profile_); I'm a little concerned about ...
6 years, 5 months ago (2014-07-17 06:24:51 UTC) #10
tmdiep
On 2014/07/17 06:24:51, Antony Sargent wrote: > https://codereview.chromium.org/389613006/diff/120001/chrome/browser/extensions/active_install_data.cc > File chrome/browser/extensions/active_install_data.cc (right): > > https://codereview.chromium.org/389613006/diff/120001/chrome/browser/extensions/active_install_data.cc#newcode44 ...
6 years, 5 months ago (2014-07-17 08:32:40 UTC) #11
asargent_no_longer_on_chrome
lgtm
6 years, 5 months ago (2014-07-17 17:02:25 UTC) #12
tmdiep
The CQ bit was checked by tmdiep@chromium.org
6 years, 5 months ago (2014-07-17 22:16:08 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tmdiep@chromium.org/389613006/200001
6 years, 5 months ago (2014-07-17 22:19:10 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 02:15:31 UTC) #15
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 05:48:41 UTC) #16
Message was sent while issue was closed.
Change committed as 284014

Powered by Google App Engine
This is Rietveld 408576698