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

Issue 2875673002: Minimize the delegate dependencies for native extension notifications. (Closed)

Created:
3 years, 7 months ago by Miguel Garcia
Modified:
3 years, 7 months ago
Reviewers:
Peter Beverloo, dewittj
CC:
chromium-reviews, Peter Beverloo, chromium-apps-reviews_chromium.org, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Minimize the delegate dependencies for native extension notifications. Support for events like click, close etc is now fully handled by the ExtensionNotificationHandler like persistent web notifications. The delegate is now just a little shim to hold the delegate id since it is still required by the Notification class. BUG=720345 Review-Url: https://codereview.chromium.org/2875673002 Cr-Commit-Position: refs/heads/master@{#473427} Committed: https://chromium.googlesource.com/chromium/src/+/dcc699ff151393a7d2fa29314befd57d194b0f60

Patch Set 1 #

Patch Set 2 : fix compile on chromeos #

Patch Set 3 : fix a memory management issue #

Patch Set 4 : disable non applicable tests #

Total comments: 14

Patch Set 5 : review #

Total comments: 14

Patch Set 6 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+299 lines, -29 lines) Patch
M chrome/browser/extensions/api/notifications/extension_notification_handler.h View 1 2 3 4 5 1 chunk +30 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/notifications/extension_notification_handler.cc View 1 2 3 4 5 1 chunk +107 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/notifications/extension_notification_handler_unittest.cc View 1 2 3 4 5 1 chunk +98 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 4 6 chunks +50 lines, -11 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_apitest.cc View 1 2 3 10 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
Miguel Garcia
I think I'll need to disable the failing tests that depend on full screen since ...
3 years, 7 months ago (2017-05-10 17:07:07 UTC) #10
Peter Beverloo
lgtm % clarifications https://codereview.chromium.org/2875673002/diff/50001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc File chrome/browser/extensions/api/notifications/extension_notification_handler.cc (right): https://codereview.chromium.org/2875673002/diff/50001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc#newcode39 chrome/browser/extensions/api/notifications/extension_notification_handler.cc:39: } // namespace nits: (1) blank ...
3 years, 7 months ago (2017-05-15 15:56:52 UTC) #15
Miguel Garcia
Thanks! +dewittj@chromium.org for OWNERS. dewittj we are trying to unify both the native and the ...
3 years, 7 months ago (2017-05-16 11:01:34 UTC) #20
dewittj
in general, this lgtm https://codereview.chromium.org/2875673002/diff/70001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc File chrome/browser/extensions/api/notifications/extension_notification_handler.cc (right): https://codereview.chromium.org/2875673002/diff/70001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc#newcode48 chrome/browser/extensions/api/notifications/extension_notification_handler.cc:48: void ExtensionNotificationHandler::OnClose(Profile* profile, Is it ...
3 years, 7 months ago (2017-05-16 22:07:17 UTC) #23
Miguel Garcia
https://codereview.chromium.org/2875673002/diff/70001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc File chrome/browser/extensions/api/notifications/extension_notification_handler.cc (right): https://codereview.chromium.org/2875673002/diff/70001/chrome/browser/extensions/api/notifications/extension_notification_handler.cc#newcode48 chrome/browser/extensions/api/notifications/extension_notification_handler.cc:48: void ExtensionNotificationHandler::OnClose(Profile* profile, On 2017/05/16 22:07:17, dewittj wrote: > ...
3 years, 7 months ago (2017-05-20 07:04:10 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2875673002/90001
3 years, 7 months ago (2017-05-20 07:04:43 UTC) #30
commit-bot: I haz the power
3 years, 7 months ago (2017-05-20 08:34:49 UTC) #33
Message was sent while issue was closed.
Committed patchset #6 (id:90001) as
https://chromium.googlesource.com/chromium/src/+/dcc699ff151393a7d2fa29314bef...

Powered by Google App Engine
This is Rietveld 408576698