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

Unified Diff: chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc

Issue 29943003: Remove CanChallengePlatform() and CheckPlatformState(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove StatisticsProvider usage. Created 7 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
Index: chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc
diff --git a/chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc b/chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc
index 23c2b7a29ba1d078daf5da8b2f59c82b461e1aba..e51c4e519f8426bfc3223012fa9a7f0d00bdac16 100644
--- a/chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc
+++ b/chrome/browser/renderer_host/pepper/pepper_platform_verification_message_filter.cc
@@ -43,9 +43,6 @@ int32_t PepperPlatformVerificationMessageFilter::OnResourceMessageReceived(
DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
IPC_BEGIN_MESSAGE_MAP(PepperPlatformVerificationMessageFilter, msg)
- PPAPI_DISPATCH_HOST_RESOURCE_CALL_0(
- PpapiHostMsg_PlatformVerification_CanChallengePlatform,
- OnCanChallengePlatform)
PPAPI_DISPATCH_HOST_RESOURCE_CALL(
PpapiHostMsg_PlatformVerification_ChallengePlatform,
OnChallengePlatform)
@@ -54,18 +51,6 @@ int32_t PepperPlatformVerificationMessageFilter::OnResourceMessageReceived(
return PP_ERROR_FAILED;
}
-int32_t PepperPlatformVerificationMessageFilter::OnCanChallengePlatform(
- ppapi::host::HostMessageContext* context) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- if (!pv_)
- pv_.reset(new PlatformVerificationFlow());
- pv_->CheckPlatformState(base::Bind(
- &PepperPlatformVerificationMessageFilter::CanChallengePlatformCallback,
- this,
- context->MakeReplyMessageContext()));
- return PP_OK_COMPLETIONPENDING;
-}
-
int32_t PepperPlatformVerificationMessageFilter::OnChallengePlatform(
ppapi::host::HostMessageContext* context,
const std::string& service_id,
@@ -101,16 +86,6 @@ int32_t PepperPlatformVerificationMessageFilter::OnChallengePlatform(
return PP_OK_COMPLETIONPENDING;
}
-void PepperPlatformVerificationMessageFilter::CanChallengePlatformCallback(
- ppapi::host::ReplyMessageContext reply_context,
- bool can_challenge_platform) {
- DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI));
- reply_context.params.set_result(PP_OK);
- SendReply(reply_context,
- PpapiHostMsg_PlatformVerification_CanChallengePlatformReply(
- can_challenge_platform));
-}
-
void PepperPlatformVerificationMessageFilter::ChallengePlatformCallback(
ppapi::host::ReplyMessageContext reply_context,
chromeos::attestation::PlatformVerificationFlow::Result challenge_result,

Powered by Google App Engine
This is Rietveld 408576698