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

Unified Diff: ppapi/proxy/platform_verification_private_resource.cc

Issue 29943003: Remove CanChallengePlatform() and CheckPlatformState(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove 0.1 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
« no previous file with comments | « ppapi/proxy/platform_verification_private_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/platform_verification_private_resource.cc
diff --git a/ppapi/proxy/platform_verification_private_resource.cc b/ppapi/proxy/platform_verification_private_resource.cc
index 4da3ca0f34ee216696c8d0decc8e8db75f7fcf0f..d361f4f82796314f94e8cc480ea59695bf368312 100644
--- a/ppapi/proxy/platform_verification_private_resource.cc
+++ b/ppapi/proxy/platform_verification_private_resource.cc
@@ -30,35 +30,6 @@ PlatformVerificationPrivateResource::AsPPB_PlatformVerification_API() {
return this;
}
-int32_t PlatformVerificationPrivateResource::CanChallengePlatform(
- PP_Bool* can_challenge_platform,
- const scoped_refptr<TrackedCallback>& callback) {
- if (!can_challenge_platform)
- return PP_ERROR_BADARGUMENT;
-
- Call<PpapiHostMsg_PlatformVerification_CanChallengePlatformReply>(
- BROWSER, PpapiHostMsg_PlatformVerification_CanChallengePlatform(),
- base::Bind(
- &PlatformVerificationPrivateResource::OnCanChallengePlatformReply,
- base::Unretained(this), can_challenge_platform, callback));
-
- return PP_OK_COMPLETIONPENDING;
-}
-
-void PlatformVerificationPrivateResource::OnCanChallengePlatformReply(
- PP_Bool* can_challenge_platform,
- const scoped_refptr<TrackedCallback>& callback,
- const ResourceMessageReplyParams& params,
- bool can_challenge_platform_response) {
- if (!TrackedCallback::IsPending(callback) ||
- TrackedCallback::IsScheduledToRun(callback)) {
- return;
- }
-
- *can_challenge_platform = PP_FromBool(can_challenge_platform_response);
- callback->Run(params.result());
-}
-
int32_t PlatformVerificationPrivateResource::ChallengePlatform(
const PP_Var& service_id,
const PP_Var& challenge,
« no previous file with comments | « ppapi/proxy/platform_verification_private_resource.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698