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

Unified Diff: chrome/browser/content_settings/permission_queue_controller.cc

Issue 1158813002: Use RenderFrameHost for ::RequestPermission() and ::CancelPermission(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/content_settings/permission_queue_controller.cc
diff --git a/chrome/browser/content_settings/permission_queue_controller.cc b/chrome/browser/content_settings/permission_queue_controller.cc
index c0a65315e584df05c66fa566b6b243405dd6a081..8564715225459edb809a3a818400d00241aa93fd 100644
--- a/chrome/browser/content_settings/permission_queue_controller.cc
+++ b/chrome/browser/content_settings/permission_queue_controller.cc
@@ -31,8 +31,8 @@
namespace {
InfoBarService* GetInfoBarService(const PermissionRequestID& id) {
- content::WebContents* web_contents =
- tab_util::GetWebContentsByID(id.render_process_id(), id.render_view_id());
+ content::WebContents* web_contents = tab_util::GetWebContentsByFrameID(
Bernhard Bauer 2015/05/27 08:26:40 Remove one space after the equals sign.
mlamouri (slow - plz ping) 2015/05/30 13:31:05 Done.
+ id.render_process_id(), id.render_frame_id());
return web_contents ? InfoBarService::FromWebContents(web_contents) : NULL;
}

Powered by Google App Engine
This is Rietveld 408576698