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

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: Created 6 years, 3 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 09d1f1198bc983d993fdb14b44645f0cfb03ec1f..2416107f8e3ce67c5cc6b76884d8e55e8bc7b174 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -948,7 +948,7 @@ void RenderFrameHostImpl::OnShowDesktopNotification(
base::Closure cancel_callback;
GetContentClient()->browser()->ShowDesktopNotification(
params,
- this,
+ GetSiteInstance()->GetBrowserContext(),
delegate.PassAs<DesktopNotificationDelegate>(),
&cancel_callback);
cancel_notification_callbacks_[notification_id] = cancel_callback;

Powered by Google App Engine
This is Rietveld 408576698