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

Issue 9837054: Improve WebstoreInstaller error handling. (Closed)

Created:
8 years, 9 months ago by jstritar
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip+watch_chromium.org
Visibility:
Public.

Description

Improve WebstoreInstaller error handling. This addresses the cases where WebstoreInstaller does not hear about failed extension installs, like for download failures (404, etc.) or when the downloaded file is not a CRX. BUG=118237 TEST=existing, also manual testing. (Example: http://www.corp.google.com/~jstritar/bundle.html with apps-gallery-update-url set to various values like http://localhost) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=129148

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : add a test #

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -21 lines) Patch
M chrome/browser/extensions/extension_webstore_private_apitest.cc View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +79 lines, -7 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_private/install_bundle_invalid.html View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jstritar
Mihai, can you take a look? Randy, FYI and can you sanity check my use ...
8 years, 9 months ago (2012-03-23 20:23:25 UTC) #1
Randy Smith (Not in Mondays)
The biggest issue is that possibility of the use-after-free, which I think can be solved ...
8 years, 9 months ago (2012-03-23 20:57:19 UTC) #2
jstritar
Thank you for reviewing! https://chromiumcodereview.appspot.com/9837054/diff/4/chrome/browser/extensions/webstore_installer.cc File chrome/browser/extensions/webstore_installer.cc (right): https://chromiumcodereview.appspot.com/9837054/diff/4/chrome/browser/extensions/webstore_installer.cc#newcode42 chrome/browser/extensions/webstore_installer.cc:42: using content::DownloadItem; On 2012/03/23 20:57:19, ...
8 years, 9 months ago (2012-03-23 21:52:53 UTC) #3
Randy Smith (Not in Mondays)
LGTM; thanks! https://chromiumcodereview.appspot.com/9837054/diff/4/chrome/browser/extensions/webstore_installer.cc File chrome/browser/extensions/webstore_installer.cc (right): https://chromiumcodereview.appspot.com/9837054/diff/4/chrome/browser/extensions/webstore_installer.cc#newcode152 chrome/browser/extensions/webstore_installer.cc:152: item->RemoveObserver(this); On 2012/03/23 21:52:53, jstritar wrote: > ...
8 years, 9 months ago (2012-03-23 22:18:29 UTC) #4
jstritar
+binji: can you take a look at chrome/browser/ui/intents for the OWNERS check?
8 years, 9 months ago (2012-03-26 18:00:08 UTC) #5
Mihai Parparita -not on Chrome
http://codereview.chromium.org/9837054/diff/9002/chrome/browser/extensions/webstore_installer.cc File chrome/browser/extensions/webstore_installer.cc (right): http://codereview.chromium.org/9837054/diff/9002/chrome/browser/extensions/webstore_installer.cc#newcode175 chrome/browser/extensions/webstore_installer.cc:175: if (extension == NULL && installer->expected_id() == id_) You ...
8 years, 9 months ago (2012-03-26 18:46:49 UTC) #6
binji
On 2012/03/26 18:00:08, jstritar wrote: > +binji: can you take a look at chrome/browser/ui/intents for ...
8 years, 9 months ago (2012-03-26 19:21:05 UTC) #7
jstritar
http://codereview.chromium.org/9837054/diff/9002/chrome/browser/extensions/webstore_installer.cc File chrome/browser/extensions/webstore_installer.cc (right): http://codereview.chromium.org/9837054/diff/9002/chrome/browser/extensions/webstore_installer.cc#newcode175 chrome/browser/extensions/webstore_installer.cc:175: if (extension == NULL && installer->expected_id() == id_) On ...
8 years, 9 months ago (2012-03-26 19:53:36 UTC) #8
Mihai Parparita -not on Chrome
LGTM
8 years, 9 months ago (2012-03-26 22:30:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jstritar@chromium.org/9837054/9003
8 years, 9 months ago (2012-03-26 22:37:36 UTC) #10
commit-bot: I haz the power
8 years, 9 months ago (2012-03-27 04:24:40 UTC) #11

Powered by Google App Engine
This is Rietveld 408576698