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

Issue 145463002: Extensions: Send the tab id to platform apps. (Closed)

Created:
6 years, 11 months ago by Lei Zhang
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, vandebo (ex-Chrome), tommycli, Greg Billock, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Extensions: Send the tab id to platform apps. This lets mediaGalleries.addUserSelectedFolder() figure out the tab that triggered the API, so it can display the select dialog in the tab when the platform app has no open windows. BUG=333899 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249322

Patch Set 1 #

Total comments: 14

Patch Set 2 : #

Total comments: 16

Patch Set 3 : #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : get rid of js changes, correctly handle disconnects #

Total comments: 2

Patch Set 6 : rebase to head #

Patch Set 7 : fix nit #

Patch Set 8 : rebase, fix failing dcheck #

Patch Set 9 : revert some bad cleanups to fix failing tests #

Patch Set 10 : fix null pointer deref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+148 lines, -54 lines) Patch
M chrome/browser/extensions/api/media_galleries/media_galleries_api.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/messaging/message_service.cc View 1 2 3 4 5 6 7 8 6 chunks +18 lines, -20 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/messaging_bindings.cc View 1 2 3 4 5 6 7 8 9 11 chunks +38 lines, -26 lines 0 comments Download
M chrome/renderer/extensions/request_sender.h View 1 2 3 4 5 6 7 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/request_sender.cc View 1 2 3 4 5 6 7 2 chunks +17 lines, -1 line 0 comments Download
M extensions/browser/extension_function.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M extensions/browser/extension_function.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
Lei Zhang
This seems to work, but I really don't know what goes where. Getting the tab ...
6 years, 11 months ago (2014-01-23 03:30:57 UTC) #1
not at google - send to devlin
Some fairly high level comments. https://codereview.chromium.org/145463002/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/145463002/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode411 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:411: // whether this API ...
6 years, 11 months ago (2014-01-23 16:41:59 UTC) #2
Lei Zhang
Just responding to some of your comments. I'll ping you when I upload a new ...
6 years, 11 months ago (2014-01-23 20:53:12 UTC) #3
not at google - send to devlin
https://codereview.chromium.org/145463002/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/145463002/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode411 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:411: // whether this API can access the source tab ...
6 years, 11 months ago (2014-01-23 21:07:42 UTC) #4
Lei Zhang
PTAL at patch set 2. I've minimized the JS changes and tried to address most ...
6 years, 11 months ago (2014-01-24 03:41:48 UTC) #5
not at google - send to devlin
lg but want to make sure about the scoped thing. Assuming my mental model of ...
6 years, 11 months ago (2014-01-24 21:37:26 UTC) #6
Lei Zhang
https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode416 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:416: bool found_tab = extensions::ExtensionTabUtil::GetTabById( On 2014/01/24 21:37:27, kalman wrote: ...
6 years, 11 months ago (2014-01-25 01:47:09 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/messaging/message_service.cc#newcode306 chrome/browser/extensions/api/messaging/message_service.cc:306: source_url_for_tab = source_url; On 2014/01/25 01:47:09, Lei Zhang wrote: ...
6 years, 11 months ago (2014-01-27 17:51:45 UTC) #8
Lei Zhang
https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/messaging/message_service.cc File chrome/browser/extensions/api/messaging/message_service.cc (right): https://codereview.chromium.org/145463002/diff/190001/chrome/browser/extensions/api/messaging/message_service.cc#newcode306 chrome/browser/extensions/api/messaging/message_service.cc:306: source_url_for_tab = source_url; On 2014/01/27 17:51:46, kalman wrote: > ...
6 years, 11 months ago (2014-01-27 23:19:12 UTC) #9
Lei Zhang
jww: I think we are just trying to narrow down where a couple of calls ...
6 years, 11 months ago (2014-01-27 23:23:07 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/145463002/diff/190001/chrome/renderer/extensions/messaging_bindings.cc File chrome/renderer/extensions/messaging_bindings.cc (right): https://codereview.chromium.org/145463002/diff/190001/chrome/renderer/extensions/messaging_bindings.cc#newcode322 chrome/renderer/extensions/messaging_bindings.cc:322: MediaGalleriesCustomBindings::PushSenderTabId(*it, tab_id); On 2014/01/27 23:19:13, Lei Zhang wrote: > ...
6 years, 11 months ago (2014-01-27 23:27:39 UTC) #11
Lei Zhang
Ok, ScopedTabID it is. See patch set 4.
6 years, 10 months ago (2014-01-28 08:14:49 UTC) #12
not at google - send to devlin
lgtm thanks so much for sticking with this so long. One more comment which hopefully ...
6 years, 10 months ago (2014-01-28 18:45:45 UTC) #13
Lei Zhang
https://codereview.chromium.org/145463002/diff/490001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/145463002/diff/490001/chrome/renderer/extensions/dispatcher.cc#newcode620 chrome/renderer/extensions/dispatcher.cc:620: port_to_tab_id_map_.erase(target_port); On 2014/01/28 18:45:45, kalman wrote: > maybe you ...
6 years, 10 months ago (2014-01-28 22:52:27 UTC) #14
not at google - send to devlin
lgtm, and thanks for all of the cleanup along the way, it has really improved ...
6 years, 10 months ago (2014-01-29 00:45:51 UTC) #15
Lei Zhang
jww: ping https://codereview.chromium.org/145463002/diff/550001/chrome/renderer/extensions/dispatcher.cc File chrome/renderer/extensions/dispatcher.cc (right): https://codereview.chromium.org/145463002/diff/550001/chrome/renderer/extensions/dispatcher.cc#newcode591 chrome/renderer/extensions/dispatcher.cc:591: DCHECK_EQ(1, target_port_id % 2); On 2014/01/29 00:45:51, ...
6 years, 10 months ago (2014-01-29 00:53:22 UTC) #16
Lei Zhang
On 2014/01/29 00:53:22, Lei Zhang wrote: > jww: ping TBR=jww
6 years, 10 months ago (2014-01-30 22:11:53 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/145463002/580001
6 years, 10 months ago (2014-01-30 22:14:07 UTC) #18
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=47332
6 years, 10 months ago (2014-01-30 22:38:50 UTC) #19
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-01-30 22:39:02 UTC) #20
Lei Zhang
Looks like we really do need security sign off. jww was somewhat positive here: https://code.google.com/p/chromium/issues/detail?id=333899#c19
6 years, 10 months ago (2014-01-30 23:02:22 UTC) #21
Lei Zhang
Security folks: still waiting for a review. The only change in patch set 8 is ...
6 years, 10 months ago (2014-02-01 01:57:51 UTC) #22
jschuh
ipc security lgtm. pod tab id
6 years, 10 months ago (2014-02-01 15:26:08 UTC) #23
vandebo (ex-Chrome)
The CQ bit was checked by vandebo@chromium.org
6 years, 10 months ago (2014-02-01 19:33:44 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/145463002/800001
6 years, 10 months ago (2014-02-01 19:34:04 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-01 21:22:46 UTC) #26
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=255308
6 years, 10 months ago (2014-02-01 21:22:47 UTC) #27
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-01 21:22:48 UTC) #28
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-01 21:22:49 UTC) #29
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 10 months ago (2014-02-02 05:52:16 UTC) #30
Lei Zhang
The CQ bit was unchecked by thestig@chromium.org
6 years, 10 months ago (2014-02-02 05:52:26 UTC) #31
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 05:52:34 UTC) #32
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-02 05:52:34 UTC) #33
jww
On 2014/02/02 05:52:34, I haz the power (commit-bot) wrote: > CQ bit was unchecked on ...
6 years, 10 months ago (2014-02-03 18:57:46 UTC) #34
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 10 months ago (2014-02-06 01:11:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/145463002/1290001
6 years, 10 months ago (2014-02-06 01:17:22 UTC) #36
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 09:59:21 UTC) #37
Message was sent while issue was closed.
Change committed as 249322

Powered by Google App Engine
This is Rietveld 408576698