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

Issue 433273002: NotificationObjectProxy should own the DesktopNotificationDelegateImpl (Closed)

Created:
6 years, 4 months ago by Peter Beverloo
Modified:
6 years, 4 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, nasko+codewatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

NotificationObjectProxy should own the DesktopNotificationDelegateImpl This makes the memory model more robust for tests (which may not interact with a notification), and means that the NotificationObjectProxy won't be stuck with a bad pointer after the delegate deletes itself. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287518

Patch Set 1 #

Total comments: 2

Patch Set 2 : pass as scoped_ptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -28 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/notifications/desktop_notification_service.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/desktop_notification_service.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_browsertest.cc View 1 chunk +1 line, -8 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.h View 1 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_object_proxy.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Beverloo
+Justin for notifications +Jochen for render_frame_host_impl.cc OWNERS I've enabled the TestNotificationReplacement test so that the ...
6 years, 4 months ago (2014-08-02 16:51:06 UTC) #1
jochen (gone - plz use gerrit)
https://codereview.chromium.org/433273002/diff/1/chrome/browser/notifications/notification_object_proxy.h File chrome/browser/notifications/notification_object_proxy.h (right): https://codereview.chromium.org/433273002/diff/1/chrome/browser/notifications/notification_object_proxy.h#newcode28 chrome/browser/notifications/notification_object_proxy.h:28: content::DesktopNotificationDelegate* delegate); you could make the parameter a scoped_ptr<> ...
6 years, 4 months ago (2014-08-04 09:11:24 UTC) #2
Peter Beverloo
+benm for android_webview/ https://codereview.chromium.org/433273002/diff/1/chrome/browser/notifications/notification_object_proxy.h File chrome/browser/notifications/notification_object_proxy.h (right): https://codereview.chromium.org/433273002/diff/1/chrome/browser/notifications/notification_object_proxy.h#newcode28 chrome/browser/notifications/notification_object_proxy.h:28: content::DesktopNotificationDelegate* delegate); On 2014/08/04 09:11:24, jochen ...
6 years, 4 months ago (2014-08-04 11:33:34 UTC) #3
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-04 12:04:47 UTC) #4
benm (inactive)
aw lgtm
6 years, 4 months ago (2014-08-04 13:04:14 UTC) #5
dewittj
lgtm, thanks!
6 years, 4 months ago (2014-08-04 20:51:12 UTC) #6
Peter Beverloo
The CQ bit was checked by peter@chromium.org
6 years, 4 months ago (2014-08-05 10:14:05 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/peter@chromium.org/433273002/20001
6 years, 4 months ago (2014-08-05 10:15:11 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-05 11:19:41 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-05 12:04:06 UTC) #10
Message was sent while issue was closed.
Change committed as 287518

Powered by Google App Engine
This is Rietveld 408576698