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

Issue 10980002: Mac Web Intents Part 1: Show extension download progress (Closed)

Created:
8 years, 3 months ago by sail
Modified:
8 years, 2 months ago
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, Aaron Boodman, groby+watch_chromium.org, rdsmith+dwatch_chromium.org, gbillock+watch_chromium.org, smckay+watch_chromium.org, rouslan+watch_chromium.org
Visibility:
Public.

Description

Mac Web Intents Part 1: Show extension download progress As per spec we want to show the extension download UI through the Web Intents Picker dialog. This CL also pipes download progress to the WebIntentPickerModel. I'll send out a separate CL to update the Mac UI to show the download progress. I also have a separate CL out for review to hide the download from the browser download shelf: https://codereview.chromium.org/11016022 BUG=152010 TEST=Go to http://webintents.org. Click share. Click "Add to Chrome". Verify that the download shelf is not shown. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159836

Patch Set 1 #

Total comments: 44

Patch Set 2 : a #

Patch Set 3 : address review comments #

Total comments: 4

Patch Set 4 : address review comments #

Patch Set 5 : added test #

Total comments: 6

Patch Set 6 : address review comments, fix test #

Patch Set 7 : remove downloads code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -34 lines) Patch
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/bundle_installer.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_inline_installer.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/webstore_installer.h View 1 2 3 4 5 2 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/extensions/webstore_installer.cc View 1 2 3 4 5 9 chunks +29 lines, -10 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.h View 1 2 3 4 5 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_controller.cc View 1 2 3 4 5 6 6 chunks +50 lines, -3 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_model.h View 1 2 3 chunks +40 lines, -0 lines 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_model.cc View 1 2 3 4 chunks +42 lines, -1 line 0 comments Download
M chrome/browser/ui/intents/web_intent_picker_model_unittest.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
sail
8 years, 3 months ago (2012-09-25 02:57:24 UTC) #1
Nico
Looks pretty good. http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc File chrome/browser/download/download_util.cc (right): http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc#newcode509 chrome/browser/download/download_util.cc:509: item->SetUserData(kShowInShelfKey, new ShowInShelfData(should_show)); Can't you just ...
8 years, 3 months ago (2012-09-25 03:07:18 UTC) #2
Greg Billock
http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc File chrome/browser/download/download_util.cc (right): http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc#newcode504 chrome/browser/download/download_util.cc:504: static_cast<ShowInShelfData*>(item->GetUserData(kShowInShelfKey)); Do we not have a type token wrapper ...
8 years, 3 months ago (2012-09-25 07:15:46 UTC) #3
Randy Smith (Not in Mondays)
[Adding Asanka as reviewer--I'd prefer this not go in without his ok, as he's Mr. ...
8 years, 2 months ago (2012-09-25 13:51:52 UTC) #4
Randy Smith (Not in Mondays)
On 2012/09/25 13:51:52, rdsmith wrote: > [Adding Asanka as reviewer--I'd prefer this not go in ...
8 years, 2 months ago (2012-09-25 13:53:54 UTC) #5
asanka
I agree with Randy that the 'should show in downloads UI' flag is better off ...
8 years, 2 months ago (2012-09-25 16:29:30 UTC) #6
Steve McKay
http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc File chrome/browser/download/download_util.cc (right): http://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.cc#newcode509 chrome/browser/download/download_util.cc:509: item->SetUserData(kShowInShelfKey, new ShowInShelfData(should_show)); On 2012/09/25 03:07:18, Nico wrote: > ...
8 years, 2 months ago (2012-09-25 18:56:04 UTC) #7
groby-ooo-7-16
http://codereview.chromium.org/10980002/diff/1/chrome/browser/ui/intents/web_intent_picker_controller.cc File chrome/browser/ui/intents/web_intent_picker_controller.cc (right): http://codereview.chromium.org/10980002/diff/1/chrome/browser/ui/intents/web_intent_picker_controller.cc#newcode575 chrome/browser/ui/intents/web_intent_picker_controller.cc:575: if (picker_) nit: This should never be NULL. Can ...
8 years, 2 months ago (2012-09-25 22:20:56 UTC) #8
jstritar
FYI, I'm not in the extensions OWNERS file anymore, so you'll need to get one ...
8 years, 2 months ago (2012-09-26 22:29:12 UTC) #9
sail
Hi Steve, sorry for the slow response. I should have most of this addressed later ...
8 years, 2 months ago (2012-10-01 20:27:35 UTC) #10
smckay
Any word on my comments Sailesh? Steve McKay | Engineering | smckay@google.com | 310-359-8331 On ...
8 years, 2 months ago (2012-10-01 20:29:55 UTC) #11
Greg Billock
http://codereview.chromium.org/10980002/diff/1/chrome/browser/ui/intents/web_intent_picker_controller.cc File chrome/browser/ui/intents/web_intent_picker_controller.cc (right): http://codereview.chromium.org/10980002/diff/1/chrome/browser/ui/intents/web_intent_picker_controller.cc#newcode475 chrome/browser/ui/intents/web_intent_picker_controller.cc:475: picker_model_->SetPendingInstallExtensionId(id); On 2012/09/25 07:15:46, Greg Billock wrote: > Needed? ...
8 years, 2 months ago (2012-10-02 03:02:28 UTC) #12
Nico
On 2012/10/01 20:29:55, smckay wrote: > Any word on my comments Sailesh? (I don't know ...
8 years, 2 months ago (2012-10-02 03:29:39 UTC) #13
smckay
(I don't know how you commented, but your comments don't show up on http://codereview.chromium.**org/10980002/<http://codereview.chromium.org/10980002/> as ...
8 years, 2 months ago (2012-10-02 17:28:24 UTC) #14
sail
Addressed all review comments. The only thing missing is a browser test for the new ...
8 years, 2 months ago (2012-10-02 18:57:01 UTC) #15
Greg Billock
On 2012/10/02 18:57:01, sail wrote: > Addressed all review comments. > The only thing missing ...
8 years, 2 months ago (2012-10-02 19:03:01 UTC) #16
Greg Billock
+sky. Scott, can you take a look for content/public/test/OWNERS? Thanks!
8 years, 2 months ago (2012-10-02 19:11:47 UTC) #17
Greg Billock
http://codereview.chromium.org/10980002/diff/20001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10980002/diff/20001/chrome/browser/ui/browser.cc#newcode1433 chrome/browser/ui/browser.cc:1433: fprintf(stderr, "%s skipping\n", __PRETTY_FUNCTION__); Take out printfs. http://codereview.chromium.org/10980002/diff/20001/chrome/browser/ui/intents/web_intent_picker_model.cc File ...
8 years, 2 months ago (2012-10-02 19:12:20 UTC) #18
sail
http://codereview.chromium.org/10980002/diff/20001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10980002/diff/20001/chrome/browser/ui/browser.cc#newcode1433 chrome/browser/ui/browser.cc:1433: fprintf(stderr, "%s skipping\n", __PRETTY_FUNCTION__); On 2012/10/02 19:12:20, Greg Billock ...
8 years, 2 months ago (2012-10-02 19:14:51 UTC) #19
Steve McKay
FYI https://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.h File chrome/browser/download/download_util.h (right): https://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.h#newcode192 chrome/browser/download/download_util.h:192: bool GetShouldShowInShelf(content::DownloadItem* item); On 2012/10/02 18:57:01, sail wrote: ...
8 years, 2 months ago (2012-10-02 19:19:22 UTC) #20
Greg Billock
Some of the comment threads are long here. It is my belief that all comments ...
8 years, 2 months ago (2012-10-02 19:20:37 UTC) #21
Greg Billock
lgtm still need a browser test that setting the downloads ui flag gets honored in ...
8 years, 2 months ago (2012-10-02 19:23:44 UTC) #22
sky
LGTM
8 years, 2 months ago (2012-10-02 20:09:14 UTC) #23
sail
Added a test. https://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.h File chrome/browser/download/download_util.h (right): https://codereview.chromium.org/10980002/diff/1/chrome/browser/download/download_util.h#newcode192 chrome/browser/download/download_util.h:192: bool GetShouldShowInShelf(content::DownloadItem* item); On 2012/10/02 19:19:22, ...
8 years, 2 months ago (2012-10-02 20:24:38 UTC) #24
Steve McKay
LGTM. Thanks.
8 years, 2 months ago (2012-10-02 20:27:30 UTC) #25
Greg Billock
test lgtm
8 years, 2 months ago (2012-10-02 20:30:52 UTC) #26
asanka
http://codereview.chromium.org/10980002/diff/23003/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/10980002/diff/23003/chrome/browser/download/download_browsertest.cc#newcode2268 chrome/browser/download/download_browsertest.cc:2268: // Download and set ShouldShowInDownloadsUI to false. Nit: Comment ...
8 years, 2 months ago (2012-10-02 21:08:37 UTC) #27
miket_OOO
chrome/browser/extensions LGTM with one comment (inline virtuals). http://codereview.chromium.org/10980002/diff/23003/chrome/browser/extensions/webstore_installer.h File chrome/browser/extensions/webstore_installer.h (right): http://codereview.chromium.org/10980002/diff/23003/chrome/browser/extensions/webstore_installer.h#newcode57 chrome/browser/extensions/webstore_installer.h:57: content::DownloadItem* item) ...
8 years, 2 months ago (2012-10-02 21:09:51 UTC) #28
sail
http://codereview.chromium.org/10980002/diff/23003/chrome/browser/download/download_browsertest.cc File chrome/browser/download/download_browsertest.cc (right): http://codereview.chromium.org/10980002/diff/23003/chrome/browser/download/download_browsertest.cc#newcode2268 chrome/browser/download/download_browsertest.cc:2268: // Download and set ShouldShowInDownloadsUI to false. On 2012/10/02 ...
8 years, 2 months ago (2012-10-02 21:48:25 UTC) #29
asanka
LGTM
8 years, 2 months ago (2012-10-02 21:53:07 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10980002/26004
8 years, 2 months ago (2012-10-02 22:00:20 UTC) #31
commit-bot: I haz the power
Presubmit check for 10980002-26004 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-02 22:00:47 UTC) #32
Avi (use Gerrit)
Wat? No. Why are you adding a boolean flag to the download item that's only ...
8 years, 2 months ago (2012-10-02 22:07:21 UTC) #33
Greg Billock
On 2012/10/02 22:07:21, Avi wrote: > Wat? No. > > Why are you adding a ...
8 years, 2 months ago (2012-10-02 22:35:38 UTC) #34
Greg Billock
On 2012/10/02 22:07:21, Avi wrote: > Wat? No. > > Why are you adding a ...
8 years, 2 months ago (2012-10-02 22:35:39 UTC) #35
sail
Hi all, I've moved the download specific changes to a separate CL: https://codereview.chromium.org/11016022/ This change ...
8 years, 2 months ago (2012-10-02 23:08:36 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/10980002/35002
8 years, 2 months ago (2012-10-02 23:08:58 UTC) #37
commit-bot: I haz the power
8 years, 2 months ago (2012-10-03 05:42:31 UTC) #38
Change committed as 159836

Powered by Google App Engine
This is Rietveld 408576698