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

Issue 10443105: Take 2 at implementing activeTab. (Closed)

Created:
8 years, 6 months ago by not at google - send to devlin
Modified:
8 years, 6 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, brettw-cc_chromium.org, Aaron Boodman, mihaip-chromium-reviews_chromium.org, darin-cc_chromium.org, marja+watch_chromium.org, benwells, koz (OOO until 15th September)
Visibility:
Public.

Description

Implement the activeTab permission, so that extensions with the permission that get tab-specific permissions granted (currently, only via clicking a browser action, but this will expand) can executeScript and captureVisibleTab on that tab only, until the next page navigation or refresh. BUG=93903 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141801

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : xhr #

Patch Set 5 : clean up #

Patch Set 6 : more work, everything done kinda #

Patch Set 7 : rebase, make tests compile (no tests yet) #

Patch Set 8 : a unit test #

Total comments: 24

Patch Set 9 : uninstall, tests, aa #

Total comments: 1

Patch Set 10 : many more tests #

Total comments: 70

Patch Set 11 : aa comments, revert XHR stuff #

Total comments: 3

Patch Set 12 : . #

Patch Set 13 : rebase #

Patch Set 14 : rebase #

Patch Set 15 : fix incorrect CHECK #

Patch Set 16 : empty -> is_empty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1338 lines, -81 lines) Patch
A chrome/browser/extensions/active_tab_permission_manager.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +93 lines, -0 lines 0 comments Download
A chrome/browser/extensions/active_tab_permission_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +122 lines, -0 lines 0 comments Download
A chrome/browser/extensions/active_tab_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +424 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/offscreen_tabs/offscreen_tabs_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/execute_code_in_tab_function.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_tab_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_toolbar_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +28 lines, -1 line 0 comments Download
M chrome/common/extensions/extension.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +60 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +17 lines, -1 line 0 comments Download
M chrome/common/extensions/extension_messages.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +147 lines, -36 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/common/extensions/url_pattern_set_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +169 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +56 lines, -14 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 1 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/tab_finder.h View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/tab_finder.cc View 1 2 3 4 5 6 1 chunk +40 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/user_script_scheduler.cc View 1 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/extensions/user_script_slave.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +7 lines, -1 line 0 comments Download
A chrome/test/data/extensions/script_and_capture/tab_specific.json View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Aaron Boodman
Here are some comments, but... I think we should remove the cross-origin XHR bit of ...
8 years, 6 months ago (2012-06-06 01:03:13 UTC) #1
not at google - send to devlin
Hi Aaron, I went through your comments, fixed up those unit tests, and added a ...
8 years, 6 months ago (2012-06-06 07:38:40 UTC) #2
Aaron Boodman
OK, your plan for the xhr code sounds good. Sorry for reviewing early, I didn't ...
8 years, 6 months ago (2012-06-06 15:50:23 UTC) #3
not at google - send to devlin
On 2012/06/06 15:50:23, Aaron Boodman wrote: > OK, your plan for the xhr code sounds ...
8 years, 6 months ago (2012-06-06 22:35:16 UTC) #4
not at google - send to devlin
On 2012/06/06 22:35:16, kalman wrote: > On 2012/06/06 15:50:23, Aaron Boodman wrote: > > OK, ...
8 years, 6 months ago (2012-06-06 22:36:18 UTC) #5
Aaron Boodman
On Wed, Jun 6, 2012 at 3:36 PM, <kalman@chromium.org> wrote: > On 2012/06/06 22:35:16, kalman ...
8 years, 6 months ago (2012-06-06 23:45:34 UTC) #6
not at google - send to devlin
Alright, done. I've written a proper bug description, and added a more complete set of ...
8 years, 6 months ago (2012-06-07 08:49:21 UTC) #7
Aaron Boodman
Nice. Nothing major. http://codereview.chromium.org/10443105/diff/27032/chrome/browser/extensions/active_tab_permission_manager.cc File chrome/browser/extensions/active_tab_permission_manager.cc (right): http://codereview.chromium.org/10443105/diff/27032/chrome/browser/extensions/active_tab_permission_manager.cc#newcode7 chrome/browser/extensions/active_tab_permission_manager.cc:7: #include "base/memory/ref_counted.h" Is this used? http://codereview.chromium.org/10443105/diff/27032/chrome/browser/extensions/active_tab_permission_manager.cc#newcode9 ...
8 years, 6 months ago (2012-06-08 05:31:30 UTC) #8
not at google - send to devlin
So I ended up removing the XHR stuff in this patch. However, I kept the ...
8 years, 6 months ago (2012-06-12 20:40:51 UTC) #9
Aaron Boodman
lgtm https://chromiumcodereview.appspot.com/10443105/diff/20004/chrome/common/extensions/extension_messages.h File chrome/common/extensions/extension_messages.h (right): https://chromiumcodereview.appspot.com/10443105/diff/20004/chrome/common/extensions/extension_messages.h#newcode241 chrome/common/extensions/extension_messages.h:241: // Tell the render review what its tab ...
8 years, 6 months ago (2012-06-12 21:21:38 UTC) #10
not at google - send to devlin
https://chromiumcodereview.appspot.com/10443105/diff/20004/chrome/common/extensions/extension_messages.h File chrome/common/extensions/extension_messages.h (right): https://chromiumcodereview.appspot.com/10443105/diff/20004/chrome/common/extensions/extension_messages.h#newcode241 chrome/common/extensions/extension_messages.h:241: // Tell the render review what its tab ID ...
8 years, 6 months ago (2012-06-12 21:24:25 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10443105/27033
8 years, 6 months ago (2012-06-12 21:25:19 UTC) #12
commit-bot: I haz the power
Failed to apply patch for chrome/browser/extensions/extension_tab_helper.cc: While running patch -p1 --forward --force; patching file chrome/browser/extensions/extension_tab_helper.cc ...
8 years, 6 months ago (2012-06-12 21:25:36 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10443105/22005
8 years, 6 months ago (2012-06-12 21:51:57 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10443105/21002
8 years, 6 months ago (2012-06-12 22:29:22 UTC) #15
commit-bot: I haz the power
Try job failure for 10443105-21002 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-12 22:48:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/10443105/29015
8 years, 6 months ago (2012-06-12 23:03:55 UTC) #17
commit-bot: I haz the power
Change committed as 141801
8 years, 6 months ago (2012-06-13 00:22:59 UTC) #18
jstritar
8 years, 6 months ago (2012-06-15 15:28:23 UTC) #19
Nice work, look forward to trying it out!

Powered by Google App Engine
This is Rietveld 408576698