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

Issue 10697017: Tabs Extension: Implementation of tabs.duplicate api. (Closed)

Created:
8 years, 5 months ago by SanjoyPal
Modified:
8 years, 3 months ago
Reviewers:
Aaron Boodman, sky
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, Matt Perry
Visibility:
Public.

Description

Tabs Extension: Implementation of tabs.duplicate api. BUG=36007 TEST=Manual: Tested with an extension with/without "tabs" permission. Automated: unittest: ExtensionTabsTest.DuplicateTabNoPermission, ExtensionPermissionsTest.DefaultFunctionAccess, ExtensionTest.ApiPermissions apitest: ExtensionApiTest.TabDuplicate Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=155731

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tabs Extension: Implementation of tabs.duplicate api. #

Total comments: 2

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Total comments: 18

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -12 lines) Patch
M chrome/browser/extensions/api/tabs/tabs.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs.cc View 1 2 3 4 5 6 7 8 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_test.cc View 1 2 3 4 5 6 7 8 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.h View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_test_utils.cc View 1 2 3 4 5 6 7 8 3 chunks +25 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/extensions/api/tabs.json View 1 2 3 4 5 6 7 8 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/basics/duplicate.html View 1 2 3 4 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/tabs/basics/duplicate.js View 1 2 3 4 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
SanjoyPal
Implemented chrome.tabs.duplicate(tabId, callback(newTabObject)). Tried to provide "newTabId" in the callback as explained in the bug, ...
8 years, 5 months ago (2012-06-28 14:50:21 UTC) #1
Aaron Boodman
Definitely needs a test. Also: - I believe that you need to add this name ...
8 years, 5 months ago (2012-06-29 07:24:15 UTC) #2
SanjoyPal
Tabs Extension: Implementation of tabs.duplicate api. BUG=36007 TEST=Manual: Tested with an extension with/without "tabs" permission. ...
8 years, 5 months ago (2012-07-03 09:48:34 UTC) #3
SanjoyPal
On 2012/06/29 07:24:15, Aaron Boodman wrote: > Definitely needs a test. Also: Done. Updated patch ...
8 years, 5 months ago (2012-07-03 10:03:21 UTC) #4
Mihai Parparita -not on Chrome
http://codereview.chromium.org/10697017/diff/4001/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/4001/chrome/browser/extensions/api/tabs/tabs.cc#newcode1118 chrome/browser/extensions/api/tabs/tabs.cc:1118: NULL, &tab_strip, &contents, &tab_index, &error_)) You need to pass ...
8 years, 5 months ago (2012-07-03 22:57:18 UTC) #5
SanjoyPal
Updated the patch after addressing review comments. PTAL. http://codereview.chromium.org/10697017/diff/4001/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/4001/chrome/browser/extensions/api/tabs/tabs.cc#newcode1118 chrome/browser/extensions/api/tabs/tabs.cc:1118: NULL, ...
8 years, 5 months ago (2012-07-04 06:49:45 UTC) #6
Aaron Boodman
http://codereview.chromium.org/10697017/diff/11003/chrome/common/extensions/api/tabs.json File chrome/common/extensions/api/tabs.json (right): http://codereview.chromium.org/10697017/diff/11003/chrome/common/extensions/api/tabs.json#newcode281 chrome/common/extensions/api/tabs.json:281: {"type": "integer", "name": "tabId"}, On second thought, I would ...
8 years, 5 months ago (2012-07-05 18:14:44 UTC) #7
SanjoyPal
Aaron, Shall I modify ExtensionTabUtil::CreateTabValue() to accept a bool parameter hasPermission and omit url, title ...
8 years, 5 months ago (2012-07-06 13:46:52 UTC) #8
SanjoyPal
Callback function now returns Tab object but omits the url, title, and faviconUrl if the ...
8 years, 5 months ago (2012-07-10 08:51:09 UTC) #9
SanjoyPal
Added apitest: ExtensionApiTest.TabDuplicate. PTAL.
8 years, 5 months ago (2012-07-16 16:07:05 UTC) #10
Aaron Boodman
Nice work. http://codereview.chromium.org/10697017/diff/18001/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/18001/chrome/browser/extensions/api/tabs/tabs.cc#newcode1123 chrome/browser/extensions/api/tabs/tabs.cc:1123: result_.reset(ExtensionTabUtil::CreateTabValue( Can you change CreateTabValue to take ...
8 years, 5 months ago (2012-07-16 21:37:59 UTC) #11
SanjoyPal
Updated patch set 6 with review comments addressed. PTAL. http://codereview.chromium.org/10697017/diff/18001/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/18001/chrome/browser/extensions/api/tabs/tabs.cc#newcode1123 chrome/browser/extensions/api/tabs/tabs.cc:1123: ...
8 years, 5 months ago (2012-07-17 10:39:56 UTC) #12
SanjoyPal
ping.
8 years, 5 months ago (2012-07-19 14:42:39 UTC) #13
Matt Tytel
Multiple parameters to callbacks are supported now :). Could you go with the originally suggested ...
8 years, 5 months ago (2012-07-19 20:33:16 UTC) #14
Aaron Boodman
I actually prefer the signature callback(TabObjectButMaybeMissingPrivacySensitiveFields tab) So please don't change it Sanjoy. Matt, I'm ...
8 years, 5 months ago (2012-07-19 20:42:38 UTC) #15
Matt Tytel
Aye, sorry for bugging you then Sanjoy.
8 years, 5 months ago (2012-07-19 21:15:36 UTC) #16
Yair (progame)
where does this review stand at the moment? it looks like it's just waiting for ...
8 years, 4 months ago (2012-08-06 19:35:02 UTC) #17
Aaron Boodman
Sorry for dropping this. It looks pretty close though, and this will be a really ...
8 years, 4 months ago (2012-08-07 01:03:24 UTC) #18
SanjoyPal
On 2012/08/07 01:03:24, Aaron Boodman wrote: > Sorry for dropping this. It looks pretty close ...
8 years, 4 months ago (2012-08-09 13:29:06 UTC) #19
sky
c/b/u LGTM
8 years, 4 months ago (2012-08-09 16:10:09 UTC) #20
SanjoyPal
Addressed the review comments. PTAL. http://codereview.chromium.org/10697017/diff/28001/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/28001/chrome/browser/extensions/api/tabs/tabs.cc#newcode1113 chrome/browser/extensions/api/tabs/tabs.cc:1113: &browser, &tab_strip, &contents, &tab_index, ...
8 years, 4 months ago (2012-08-14 11:14:13 UTC) #21
Aaron Boodman
For future reference: It's polite to avoid rebasing a CL until you get LGTMs from ...
8 years, 4 months ago (2012-08-15 04:09:04 UTC) #22
Aaron Boodman
http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc#newcode1109 chrome/browser/extensions/api/tabs/tabs.cc:1109: if (has_callback()) { You can invert this check and ...
8 years, 4 months ago (2012-08-15 04:14:05 UTC) #23
Aaron Boodman
Ping? It would be nice to get this landed soon so that it can be ...
8 years, 3 months ago (2012-09-04 21:25:57 UTC) #24
SanjoyPal
Sorry for being so late. For some reasons i was not able to work on ...
8 years, 3 months ago (2012-09-05 08:31:15 UTC) #25
Aaron Boodman
http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc File chrome/browser/extensions/api/tabs/tabs.cc (right): http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc#newcode1110 chrome/browser/extensions/api/tabs/tabs.cc:1110: bool has_permission = GetExtension()->HasAPIPermissionForTab(tab_id, On 2012/09/05 08:31:15, SanjoyPal wrote: ...
8 years, 3 months ago (2012-09-05 21:56:21 UTC) #26
SanjoyPal
On 2012/09/05 21:56:21, Aaron Boodman wrote: > http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc > File chrome/browser/extensions/api/tabs/tabs.cc (right): > > http://codereview.chromium.org/10697017/diff/38002/chrome/browser/extensions/api/tabs/tabs.cc#newcode1110 ...
8 years, 3 months ago (2012-09-06 10:53:16 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/10697017/59002
8 years, 3 months ago (2012-09-07 05:35:18 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/10697017/59002
8 years, 3 months ago (2012-09-07 05:49:09 UTC) #29
commit-bot: I haz the power
Try job failure for 10697017-59002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 3 months ago (2012-09-07 07:34:27 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ncj674@motorola.com/10697017/50021
8 years, 3 months ago (2012-09-10 12:57:48 UTC) #31
commit-bot: I haz the power
8 years, 3 months ago (2012-09-10 15:10:00 UTC) #32
Change committed as 155731

Powered by Google App Engine
This is Rietveld 408576698