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

Unified Diff: chrome/browser/chromeos/attestation/platform_verification_flow.h

Issue 881983003: media: Invoke PlatformVerificationDialog from ProtectedMediaIdentifierPermissionContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added todo + bug Created 5 years, 10 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/chromeos/attestation/platform_verification_flow.h
diff --git a/chrome/browser/chromeos/attestation/platform_verification_flow.h b/chrome/browser/chromeos/attestation/platform_verification_flow.h
index a48b11cfd79270813126dbee17d89a298ab54224..48b5de56af7777e220541b7902ebcbc9a45c5f97 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_flow.h
+++ b/chrome/browser/chromeos/attestation/platform_verification_flow.h
@@ -92,9 +92,10 @@ class PlatformVerificationFlow
// Invokes consent UI within the context of |web_contents| and calls
// |callback| when the user responds.
- // Precondition: The last committed URL for |web_contents| has a valid
- // origin.
+ // |requesting_origin| or the extension/app name will be shown on the prompt
+ // if the request comes from a web page or an extension/app, respectively.
virtual void ShowConsentPrompt(content::WebContents* web_contents,
+ const GURL& requesting_origin,
const ConsentCallback& callback) = 0;
// Gets prefs associated with the given |web_contents|. If no prefs are

Powered by Google App Engine
This is Rietveld 408576698