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

Unified Diff: chrome/browser/geolocation/geolocation_permission_context_extensions.cc

Issue 1200503002: [Extensions] Kill off ExtensionMsg_AddMessageToConsole (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master 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/geolocation/geolocation_permission_context_extensions.cc
diff --git a/chrome/browser/geolocation/geolocation_permission_context_extensions.cc b/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
index 3b109984b244cd082043bb32f8e6f4c6fd3553bc..8208a974e8b5495b0fb9cce85219a1c4d1c60e72 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
@@ -71,7 +71,7 @@ bool GeolocationPermissionContextExtensions::RequestPermission(
requesting_frame_origin);
if (IsExtensionWithPermissionOrSuggestInConsole(
APIPermission::kGeolocation, extension,
- web_contents->GetRenderViewHost())) {
+ web_contents->GetMainFrame())) {
// Make sure the extension is in the calling process.
if (extensions::ProcessMap::Get(profile_)->Contains(
extension->id(), request_id.render_process_id())) {
« no previous file with comments | « chrome/browser/extensions/api/mdns/mdns_api.cc ('k') | chrome/browser/notifications/desktop_notification_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698