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

Issue 8113006: Add js api for hosted/pacakged apps to request notification authorization (Closed)

Created:
9 years, 2 months ago by asargent_no_longer_on_chrome
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Erik does not do reviews, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Add js api for hosted/packaged apps to request notification authorization BUG=98145 TEST=None (more pieces will be landing that will make it testable) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104410

Patch Set 1 #

Total comments: 4

Patch Set 2 : changed CallbackMap to WeakV8FunctionMap #

Patch Set 3 : rebased #

Total comments: 4

Patch Set 4 : added process check, and moved to ExtensionTabHelper #

Total comments: 10

Patch Set 5 : addressed review comments #

Patch Set 6 : rebased, and fixed small nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+469 lines, -59 lines) Patch
A chrome/browser/extensions/app_notify_channel_setup.h View 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/extensions/app_notify_channel_setup.cc View 1 2 3 4 5 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/extensions/app_notify_channel_setup_unittest.cc View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.h View 1 2 3 4 4 chunks +18 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_tab_helper.cc View 1 2 3 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_app_bindings.h View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_app_bindings.cc View 1 2 3 6 chunks +75 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_webstore_bindings.cc View 1 5 chunks +12 lines, -51 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.h View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 2 3 4 5 4 chunks +20 lines, -3 lines 0 comments Download
A chrome/renderer/weak_v8_function_map.h View 1 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/renderer/weak_v8_function_map.cc View 1 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Aaron Boodman
Cool, I look forward to simpifying this :) http://codereview.chromium.org/8113006/diff/1/chrome/renderer/extensions/callback_map.h File chrome/renderer/extensions/callback_map.h (right): http://codereview.chromium.org/8113006/diff/1/chrome/renderer/extensions/callback_map.h#newcode15 chrome/renderer/extensions/callback_map.h:15: namespace ...
9 years, 2 months ago (2011-10-03 22:07:43 UTC) #1
asargent_no_longer_on_chrome
Ready for another look. http://codereview.chromium.org/8113006/diff/1/chrome/renderer/extensions/callback_map.h File chrome/renderer/extensions/callback_map.h (right): http://codereview.chromium.org/8113006/diff/1/chrome/renderer/extensions/callback_map.h#newcode15 chrome/renderer/extensions/callback_map.h:15: namespace extensions_v8_util { On 2011/10/03 ...
9 years, 2 months ago (2011-10-04 00:43:20 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8113006/diff/4001/chrome/browser/extensions/extension_message_handler.cc File chrome/browser/extensions/extension_message_handler.cc (right): http://codereview.chromium.org/8113006/diff/4001/chrome/browser/extensions/extension_message_handler.cc#newcode61 chrome/browser/extensions/extension_message_handler.cc:61: if (!extension_service || !extension_service->is_ready()) I don't think that it ...
9 years, 2 months ago (2011-10-04 23:40:36 UTC) #3
asargent_no_longer_on_chrome
> Can you also check that the app is running in the requesting process (via ...
9 years, 2 months ago (2011-10-05 05:13:25 UTC) #4
asargent_no_longer_on_chrome
Added process check for packaged apps. I also realized that it will only be valid ...
9 years, 2 months ago (2011-10-06 03:35:32 UTC) #5
Aaron Boodman
http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc File chrome/browser/extensions/app_notify_channel_setup.cc (right): http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc#newcode46 chrome/browser/extensions/app_notify_channel_setup.cc:46: if (delegate_) You need to clear this when ExtensionTabHelper ...
9 years, 2 months ago (2011-10-06 20:29:28 UTC) #6
asargent_no_longer_on_chrome
http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc File chrome/browser/extensions/app_notify_channel_setup.cc (right): http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc#newcode46 chrome/browser/extensions/app_notify_channel_setup.cc:46: if (delegate_) On 2011/10/06 20:29:28, Aaron Boodman wrote: > ...
9 years, 2 months ago (2011-10-06 22:37:38 UTC) #7
Aaron Boodman
lgtm http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc File chrome/browser/extensions/app_notify_channel_setup.cc (right): http://codereview.chromium.org/8113006/diff/12002/chrome/browser/extensions/app_notify_channel_setup.cc#newcode46 chrome/browser/extensions/app_notify_channel_setup.cc:46: if (delegate_) On 2011/10/06 22:37:38, Antony Sargent wrote: ...
9 years, 2 months ago (2011-10-06 22:40:25 UTC) #8
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/asargent@chromium.org/8113006/21001
9 years, 2 months ago (2011-10-06 23:11:19 UTC) #9
commit-bot: I haz the power
9 years, 2 months ago (2011-10-07 00:49:01 UTC) #10
Change committed as 104410

Powered by Google App Engine
This is Rietveld 408576698