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

Issue 175263003: Add chrome.webstore API methods to allow sites to see progress of installation (Closed)

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

Description

Add chrome.webstore API methods to allow sites to see progress of installation Add two chrome.webstore API methods for progress updates: chrome.webstore.setInstallStageListener(function(string stage)) - stage is either "downloading" or "installing" chrome.webstore.setDownloadProgressListener(function(int percent_downloaded)) Update InstallObserver to have methods for install stages. Make WebstoreInstaller provide more frequent download updates (current consumers like WebstoreResult imply this was intended from the start). BUG=308634 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=259483

Patch Set 1 : #

Total comments: 3

Patch Set 2 : separate pure-virtual change #

Total comments: 33

Patch Set 3 : Use Event structure #

Total comments: 32

Patch Set 4 : #

Patch Set 5 : Antony's #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : Enable Extensions guard #

Patch Set 8 : Fix test #

Total comments: 6

Patch Set 9 : Julien's #

Total comments: 2

Patch Set 10 : Committed missing test file #

Patch Set 11 : Julien's II #

Total comments: 4

Patch Set 12 : Latest master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+730 lines, -120 lines) Patch
A chrome/browser/extensions/api/webstore/webstore_api.h View 1 2 3 4 5 6 7 8 1 chunk +104 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/webstore/webstore_api.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +142 lines, -0 lines 0 comments Download
M chrome/browser/extensions/browser_context_keyed_service_factories.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/install_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -11 lines 0 comments Download
M chrome/browser/extensions/install_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -15 lines 0 comments Download
M chrome/browser/extensions/install_tracker.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/install_tracker.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +23 lines, -5 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.h View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +48 lines, -13 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webstore.json View 1 2 3 2 chunks +35 lines, -1 line 0 comments Download
A chrome/common/extensions/api/webstore/webstore_api_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/webstore/webstore_api_constants.cc View 1 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +29 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +59 lines, -38 lines 0 comments Download
M chrome/renderer/resources/extensions/webstore_custom_bindings.js View 1 2 3 4 2 chunks +46 lines, -11 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_inline_install/both_listeners.html View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -5 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_inline_install/download_progress_listener.html View 1 2 3 chunks +14 lines, -5 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_inline_install/install_stage_listener.html View 1 2 1 chunk +66 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_inline_install/multiple_install_calls.html View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M extensions/common/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -14 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
Devlin
Ben, mind taking a look? (It's not quite as big and scary as it seems). ...
6 years, 9 months ago (2014-02-25 22:55:17 UTC) #1
felt
drive-by comment https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (left): https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h#oldcode85 chrome/browser/extensions/activity_log/activity_log.h:85: virtual void OnExtensionInstalled(const Extension* extension) OVERRIDE {} ...
6 years, 9 months ago (2014-02-25 23:30:40 UTC) #2
Devlin
https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (left): https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h#oldcode85 chrome/browser/extensions/activity_log/activity_log.h:85: virtual void OnExtensionInstalled(const Extension* extension) OVERRIDE {} On 2014/02/25 ...
6 years, 9 months ago (2014-02-25 23:40:45 UTC) #3
felt
https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h File chrome/browser/extensions/activity_log/activity_log.h (left): https://codereview.chromium.org/175263003/diff/260001/chrome/browser/extensions/activity_log/activity_log.h#oldcode85 chrome/browser/extensions/activity_log/activity_log.h:85: virtual void OnExtensionInstalled(const Extension* extension) OVERRIDE {} Ah, I ...
6 years, 9 months ago (2014-02-25 23:43:40 UTC) #4
not at google - send to devlin
Heyyy so mind making that pure-virtual change in a pre-patch? Also: WDYT about having progress ...
6 years, 9 months ago (2014-02-26 00:05:26 UTC) #5
Devlin
On 2014/02/26 00:05:26, kalman wrote: > Heyyy so mind making that pure-virtual change in a ...
6 years, 9 months ago (2014-02-26 22:43:05 UTC) #6
not at google - send to devlin
I had a look at the API implementation and the comment about the events will ...
6 years, 9 months ago (2014-02-27 21:49:55 UTC) #7
Devlin
Thanks, Ben, that cleaned it up a lot. :) Didn't know we could use the ...
6 years, 9 months ago (2014-02-28 18:04:50 UTC) #8
not at google - send to devlin
Thanks, that looks much better! I still only looked at the renderer and part of ...
6 years, 9 months ago (2014-03-01 01:42:06 UTC) #9
Devlin
https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc File chrome/browser/extensions/api/webstore/webstore_api.cc (right): https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc#newcode83 chrome/browser/extensions/api/webstore/webstore_api.cc:83: iter->routing_id, percent_downloaded)); On 2014/03/01 01:42:07, kalman wrote: > you ...
6 years, 9 months ago (2014-03-03 17:44:59 UTC) #10
asargent_no_longer_on_chrome
https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc File chrome/browser/extensions/api/webstore/webstore_api.cc (right): https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc#newcode39 chrome/browser/extensions/api/webstore/webstore_api.cc:39: Profile::FromBrowserContext(browser_context))->AddObserver(this); Should you be removing yourself as an observer ...
6 years, 9 months ago (2014-03-03 18:49:08 UTC) #11
Devlin
https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc File chrome/browser/extensions/api/webstore/webstore_api.cc (right): https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/api/webstore/webstore_api.cc#newcode39 chrome/browser/extensions/api/webstore/webstore_api.cc:39: Profile::FromBrowserContext(browser_context))->AddObserver(this); On 2014/03/03 18:49:08, Antony Sargent wrote: > Should ...
6 years, 9 months ago (2014-03-03 21:15:12 UTC) #12
asargent_no_longer_on_chrome
lgtm https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/install_observer.h File chrome/browser/extensions/install_observer.h (right): https://codereview.chromium.org/175263003/diff/340001/chrome/browser/extensions/install_observer.h#newcode66 chrome/browser/extensions/install_observer.h:66: virtual void OnAppInstalledToAppList(const std::string& extension_id) {} On 2014/03/03 ...
6 years, 9 months ago (2014-03-03 22:25:33 UTC) #13
Devlin
https://codereview.chromium.org/175263003/diff/340001/chrome/renderer/resources/extensions/webstore_custom_bindings.js File chrome/renderer/resources/extensions/webstore_custom_bindings.js (right): https://codereview.chromium.org/175263003/diff/340001/chrome/renderer/resources/extensions/webstore_custom_bindings.js#newcode20 chrome/renderer/resources/extensions/webstore_custom_bindings.js:20: throw 'A Chrome Web Store installation is already pending.'; ...
6 years, 9 months ago (2014-03-03 22:49:15 UTC) #14
Devlin
+jln: chrome/common/extensions/extension_messages.h +davemoore: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
6 years, 9 months ago (2014-03-03 22:50:33 UTC) #15
Devlin
friendly ping to jln@ and davemoore@. The Play team is eagerly awaiting these API methods, ...
6 years, 9 months ago (2014-03-07 16:28:46 UTC) #16
Devlin
+jschuh@ for extension_messages +erg@ for chrome_browser_browser_main_extra_parts_profiles (Assuming that davemoore@ and jln@ are review-swamped, given the ...
6 years, 9 months ago (2014-03-10 21:24:18 UTC) #17
Elliot Glaysher
trivial profiles change lgtm
6 years, 9 months ago (2014-03-10 21:34:24 UTC) #18
jln (very slow on Chromium)
Sorry this slept through. https://chromiumcodereview.appspot.com/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://chromiumcodereview.appspot.com/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc#newcode572 chrome/browser/extensions/tab_helper.cc:572: #if defined(ENABLE_EXTENSIONS) Could you check ...
6 years, 9 months ago (2014-03-10 23:35:40 UTC) #19
Devlin
https://codereview.chromium.org/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc File chrome/browser/extensions/tab_helper.cc (right): https://codereview.chromium.org/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc#newcode572 chrome/browser/extensions/tab_helper.cc:572: #if defined(ENABLE_EXTENSIONS) On 2014/03/10 23:35:41, jln (OOO-til-March-17) wrote: > ...
6 years, 9 months ago (2014-03-11 17:22:06 UTC) #20
Devlin
On 2014/03/11 17:22:06, D Cronin wrote: > https://codereview.chromium.org/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc > File chrome/browser/extensions/tab_helper.cc (right): > > https://codereview.chromium.org/175263003/diff/500001/chrome/browser/extensions/tab_helper.cc#newcode572 ...
6 years, 9 months ago (2014-03-18 20:20:08 UTC) #21
jln (very slow on Chromium)
https://codereview.chromium.org/175263003/diff/500001/chrome/common/extensions/extension_messages.h File chrome/common/extensions/extension_messages.h (right): https://codereview.chromium.org/175263003/diff/500001/chrome/common/extensions/extension_messages.h#newcode614 chrome/common/extensions/extension_messages.h:614: std::string /* stage */) Sorry, I should have been ...
6 years, 9 months ago (2014-03-20 00:05:39 UTC) #22
Devlin
Comments addressed. Thanks for the attention, Julien - I'll try to make the next patch ...
6 years, 9 months ago (2014-03-20 16:54:36 UTC) #23
Devlin
On 2014/03/20 16:54:36, D Cronin wrote: > Comments addressed. Thanks for the attention, Julien - ...
6 years, 9 months ago (2014-03-24 21:03:08 UTC) #24
jln (very slow on Chromium)
chrome/common/extensions/chrome_extension_messages.h lgtm for the new messages. However some of the old messages which are being ...
6 years, 9 months ago (2014-03-25 02:17:59 UTC) #25
Devlin
Julien, if it's alright with you, I'd like to handle your last two comments in ...
6 years, 9 months ago (2014-03-25 17:31:58 UTC) #26
jln (very slow on Chromium)
On 2014/03/25 17:31:58, D Cronin wrote: > Julien, if it's alright with you, I'd like ...
6 years, 9 months ago (2014-03-25 20:11:26 UTC) #27
Devlin
The CQ bit was checked by rdevlin.cronin@chromium.org
6 years, 9 months ago (2014-03-25 23:30:07 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rdevlin.cronin@chromium.org/175263003/610001
6 years, 9 months ago (2014-03-25 23:30:43 UTC) #29
commit-bot: I haz the power
6 years, 9 months ago (2014-03-26 04:36:34 UTC) #30
Message was sent while issue was closed.
Change committed as 259483

Powered by Google App Engine
This is Rietveld 408576698