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

Unified Diff: chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc

Issue 2226633002: Add a feature to display a persistence toggle for permission prompts on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, verbal change to make it geolocation-only Created 4 years, 4 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/media/protected_media_identifier_infobar_delegate_android.cc
diff --git a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
index 621d4313b75e2bd5e565594ace66305e036b6e87..53f7fc5b970f4e9c95e8231fc6ae804495e32358 100644
--- a/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
+++ b/chrome/browser/media/protected_media_identifier_infobar_delegate_android.cc
@@ -19,8 +19,8 @@ infobars::InfoBar* ProtectedMediaIdentifierInfoBarDelegateAndroid::Create(
bool user_gesture,
Profile* profile,
const PermissionSetCallback& callback) {
- return infobar_service->AddInfoBar(infobar_service->CreateConfirmInfoBar(
- std::unique_ptr<ConfirmInfoBarDelegate>(
+ return infobar_service->AddInfoBar(
+ CreatePermissionInfoBar(std::unique_ptr<PermissionInfobarDelegate>(
new ProtectedMediaIdentifierInfoBarDelegateAndroid(
requesting_frame, user_gesture, profile, callback))));
}

Powered by Google App Engine
This is Rietveld 408576698