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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 578883003: Remove the strict dependency on WebContents for Web Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plumb through render_process_id Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index e2bf47bc3e6b179002fb72ed4f1a3fdf6525290b..cc297c419aabbe3769e3c42f280048d5c0618189 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1012,7 +1012,12 @@ void RenderFrameHostImpl::OnShowDesktopNotification(
base::Closure cancel_callback;
GetContentClient()->browser()->ShowDesktopNotification(
- params, this, delegate.Pass(), &cancel_callback);
+ params,
+ GetSiteInstance()->GetBrowserContext(),
+ GetProcess()->GetID(),
+ delegate.Pass(),
+ &cancel_callback);
+
cancel_notification_callbacks_[notification_id] = cancel_callback;
}
« no previous file with comments | « chrome/browser/notifications/notification_object_proxy.cc ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698