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

Unified Diff: chrome/browser/ui/permission_bubble/mock_permission_prompt.cc

Issue 2919323002: Support "learn more" link for EME in PermissionRequestManager code-path on Android (Closed)
Patch Set: fix var order Created 3 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/ui/permission_bubble/mock_permission_prompt.cc
diff --git a/chrome/browser/ui/permission_bubble/mock_permission_prompt.cc b/chrome/browser/ui/permission_bubble/mock_permission_prompt.cc
index 2618143e41f8bf3b7f10a5e75ccce78ab04c2a2e..36e09665c1974cb58b3c52099d8d3fa0fcf5a553 100644
--- a/chrome/browser/ui/permission_bubble/mock_permission_prompt.cc
+++ b/chrome/browser/ui/permission_bubble/mock_permission_prompt.cc
@@ -20,6 +20,12 @@ void MockPermissionPrompt::Show() {
for (const PermissionRequest* request : manager_->requests_) {
factory_->request_types_seen_.push_back(
request->GetPermissionRequestType());
+ // The actual prompt will call these, ensure we have test coverage.
Timothy Loh 2017/06/06 03:46:36 Not sure if I should add an instrumentation test f
raymes 2017/06/06 05:14:18 I would rather check that the results are meaningf
Timothy Loh 2017/06/06 09:29:15 Not sure this is really an appropriate place to ha
raymes 2017/06/06 22:53:33 It's definitely not ideal but I think it's slightl
+ request->GetIconId();
+ request->GetMessageTextFragment();
+#if defined(OS_ANDROID)
+ request->GetMessageText();
+#endif
}
factory_->UpdateResponseType();
is_visible_ = true;

Powered by Google App Engine
This is Rietveld 408576698