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

Unified Diff: chrome/browser/notifications/desktop_notification_service.cc

Issue 1200503002: [Extensions] Kill off ExtensionMsg_AddMessageToConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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: chrome/browser/notifications/desktop_notification_service.cc
diff --git a/chrome/browser/notifications/desktop_notification_service.cc b/chrome/browser/notifications/desktop_notification_service.cc
index 78e9b9e300764a2fb473b826cf0ae75121fd7398..eb9ec4661255ced9a917161a5ca9640fffab95ab 100644
--- a/chrome/browser/notifications/desktop_notification_service.cc
+++ b/chrome/browser/notifications/desktop_notification_service.cc
@@ -116,9 +116,7 @@ void DesktopNotificationService::RequestNotificationPermission(
}
}
if (IsExtensionWithPermissionOrSuggestInConsole(
- extensions::APIPermission::kNotifications,
- extension,
- web_contents->GetRenderViewHost())) {
+ extensions::APIPermission::kNotifications, extension, web_contents)) {
result_callback.Run(CONTENT_SETTING_ALLOW);
return;
}

Powered by Google App Engine
This is Rietveld 408576698