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

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

Issue 2069343002: Pass profile to PermissionUmaUtil::PermissionIgnored (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-hooks-to-permission-layer
Patch Set: Rebase Created 4 years, 5 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_infobar_delegate_android.cc
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
index b81d233b50a290c49f0ffd8027585f5ffdf7011d..b67b268dd3f0ea7f5a891e81c03edda2ff406f7b 100644
--- a/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate_android.cc
@@ -14,18 +14,22 @@
infobars::InfoBar* GeolocationInfoBarDelegateAndroid::Create(
InfoBarService* infobar_service,
const GURL& requesting_frame,
+ Profile* profile,
const PermissionSetCallback& callback) {
return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
std::unique_ptr<ConfirmInfoBarDelegate>(
- new GeolocationInfoBarDelegateAndroid(requesting_frame, callback))));
+ new GeolocationInfoBarDelegateAndroid(requesting_frame, profile,
+ callback))));
}
GeolocationInfoBarDelegateAndroid::GeolocationInfoBarDelegateAndroid(
const GURL& requesting_frame,
+ Profile* profile,
const PermissionSetCallback& callback)
: PermissionInfobarDelegate(requesting_frame,
content::PermissionType::GEOLOCATION,
CONTENT_SETTINGS_TYPE_GEOLOCATION,
+ profile,
callback),
requesting_frame_(requesting_frame) {}

Powered by Google App Engine
This is Rietveld 408576698