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

Unified Diff: chrome/browser/chromeos/attestation/platform_verification_dialog.cc

Issue 2395133003: Update comments on pressing Esc on PlatformVerificationDialog (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/media/protected_media_identifier_permission_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/attestation/platform_verification_dialog.cc
diff --git a/chrome/browser/chromeos/attestation/platform_verification_dialog.cc b/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
index b13aab4789ff040be642992b44dd01f96c94a539..1d95092dd229fbbb2b7fc186e59913fa8c0853ea 100644
--- a/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
+++ b/chrome/browser/chromeos/attestation/platform_verification_dialog.cc
@@ -87,22 +87,21 @@ PlatformVerificationDialog::PlatformVerificationDialog(
}
bool PlatformVerificationDialog::Cancel() {
- // This method is called when user clicked "Disable on <origin>" button or
- // when user pressed the "Esc" key. See http://crbug.com/467155
+ // This method is called when user clicked "Block" button.
callback_.Run(CONSENT_RESPONSE_DENY);
return true;
}
bool PlatformVerificationDialog::Accept() {
- // This method is called when user clicked "OK, I got it" button.
+ // This method is called when user clicked "Allow" button.
callback_.Run(CONSENT_RESPONSE_ALLOW);
return true;
}
bool PlatformVerificationDialog::Close() {
- // This method is called when user clicked "x" to dismiss the dialog, the
- // permission request is canceled, or when the tab containing this dialog is
- // closed.
+ // This method is called when user clicked "x" or pressed "Esc" to dismiss the
+ // dialog, the permission request is canceled, or when the tab containing this
+ // dialog is closed.
callback_.Run(CONSENT_RESPONSE_NONE);
return true;
}
« no previous file with comments | « no previous file | chrome/browser/media/protected_media_identifier_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698