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

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: 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..91cbf503dfc28dbfcb0cfec5c4ed88fd7287dc4c 100644
--- a/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context_extensions.cc
@@ -69,9 +69,8 @@ bool GeolocationPermissionContextExtensions::RequestPermission(
const extensions::Extension* extension =
extension_registry->enabled_extensions().GetExtensionOrAppByURL(
requesting_frame_origin);
- if (IsExtensionWithPermissionOrSuggestInConsole(
- APIPermission::kGeolocation, extension,
- web_contents->GetRenderViewHost())) {
+ if (IsExtensionWithPermissionOrSuggestInConsole(APIPermission::kGeolocation,
+ extension, web_contents)) {
// Make sure the extension is in the calling process.
if (extensions::ProcessMap::Get(profile_)->Contains(
extension->id(), request_id.render_process_id())) {

Powered by Google App Engine
This is Rietveld 408576698