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

Issue 10695070: Implement scriptBadge.requestToAct. (Closed)

Created:
8 years, 5 months ago by Jeffrey Yasskin
Modified:
8 years, 5 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, not at google - send to devlin
Visibility:
Public.

Description

Implement scriptBadge.requestToAct. Currently it just shows the script badge and responds to clicks by granting permission, without changing its appearance or explaining the result of a click at all. BUG=133142 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146930

Patch Set 1 #

Total comments: 19

Patch Set 2 : Fix Aaron's comments. A test is still pending. #

Patch Set 3 : Add a test. #

Patch Set 4 : Fix more of Aaron's comments. #

Total comments: 4

Patch Set 5 : Alphabetize #

Patch Set 6 : Sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -27 lines) Patch
M chrome/browser/extensions/api/extension_action/extension_actions_api.h View 1 2 3 4 5 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_actions_api.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/extension_action/extension_script_badge_api.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_function_registry.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/location_bar_controller.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/page_action_controller.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.h View 1 2 3 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller.cc View 1 2 3 4 5 5 chunks +37 lines, -10 lines 0 comments Download
M chrome/browser/extensions/script_badge_controller_unittest.cc View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/script_badge.json View 1 2 3 1 chunk +19 lines, -0 lines 0 comments Download
A + chrome/common/extensions/docs/extensions/scriptBadge.html View 1 2 3 5 chunks +86 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/samples.json View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Jeffrey Yasskin
I'm working on a change to inject a script badge controller so I can unit-test ...
8 years, 5 months ago (2012-07-02 22:47:33 UTC) #1
Aaron Boodman
Is it possible to make it at least not crash?
8 years, 5 months ago (2012-07-02 23:09:26 UTC) #2
Jeffrey Yasskin
Yes, but in a separate change. I'm pretty sure the crash happens at head because ...
8 years, 5 months ago (2012-07-02 23:11:13 UTC) #3
Aaron Boodman
http://codereview.chromium.org/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h File chrome/browser/extensions/api/extension_action/extension_actions_api.h (right): http://codereview.chromium.org/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h#newcode41 chrome/browser/extensions/api/extension_action/extension_actions_api.h:41: ExtensionTabHelper& tab_helper() const; These are supposed to be const-ref ...
8 years, 5 months ago (2012-07-03 01:29:31 UTC) #4
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h File chrome/browser/extensions/api/extension_action/extension_actions_api.h (right): https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h#newcode41 chrome/browser/extensions/api/extension_action/extension_actions_api.h:41: ExtensionTabHelper& tab_helper() const; On 2012/07/03 01:29:31, Aaron Boodman wrote: ...
8 years, 5 months ago (2012-07-10 21:52:33 UTC) #5
Aaron Boodman
https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h File chrome/browser/extensions/api/extension_action/extension_actions_api.h (right): https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/browser/extensions/api/extension_action/extension_actions_api.h#newcode41 chrome/browser/extensions/api/extension_action/extension_actions_api.h:41: ExtensionTabHelper& tab_helper() const; On 2012/07/10 21:52:33, Jeffrey Yasskin wrote: ...
8 years, 5 months ago (2012-07-10 22:50:45 UTC) #6
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/common/extensions/api/script_badge.json File chrome/common/extensions/api/script_badge.json (right): https://chromiumcodereview.appspot.com/10695070/diff/1/chrome/common/extensions/api/script_badge.json#newcode58 chrome/common/extensions/api/script_badge.json:58: "description": "Shows a greyed-out script badge in order to ...
8 years, 5 months ago (2012-07-16 21:33:37 UTC) #7
Aaron Boodman
lgtm https://chromiumcodereview.appspot.com/10695070/diff/22002/chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc File chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc (right): https://chromiumcodereview.appspot.com/10695070/diff/22002/chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc#newcode14 chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc:14: tab_helper().location_bar_controller()->GetAttentionFor(extension_id()); I guess right now it doesn't matter ...
8 years, 5 months ago (2012-07-16 21:46:09 UTC) #8
Jeffrey Yasskin
https://chromiumcodereview.appspot.com/10695070/diff/22002/chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc File chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc (right): https://chromiumcodereview.appspot.com/10695070/diff/22002/chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc#newcode14 chrome/browser/extensions/api/extension_action/extension_script_badge_api.cc:14: tab_helper().location_bar_controller()->GetAttentionFor(extension_id()); On 2012/07/16 21:46:09, Aaron Boodman wrote: > I ...
8 years, 5 months ago (2012-07-16 21:58:27 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10695070/23015
8 years, 5 months ago (2012-07-16 21:58:41 UTC) #10
commit-bot: I haz the power
Try job failure for 10695070-23015 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-16 22:19:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jyasskin@chromium.org/10695070/29007
8 years, 5 months ago (2012-07-16 22:54:00 UTC) #12
commit-bot: I haz the power
8 years, 5 months ago (2012-07-17 00:10:22 UTC) #13
Change committed as 146930

Powered by Google App Engine
This is Rietveld 408576698