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

Unified Diff: ppapi/cpp/private/platform_verification.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
Index: ppapi/cpp/private/platform_verification.cc
diff --git a/ppapi/cpp/private/platform_verification.cc b/ppapi/cpp/private/platform_verification.cc
index f90857006963cd83eaf5fb6c07262a129baae388..e199a7199d1229777882780f3e22f62be24b5c5c 100644
--- a/ppapi/cpp/private/platform_verification.cc
+++ b/ppapi/cpp/private/platform_verification.cc
@@ -15,16 +15,16 @@ namespace pp {
namespace {
-template <> const char* interface_name<PPB_PlatformVerification_Private_0_1>() {
- return PPB_PLATFORMVERIFICATION_PRIVATE_INTERFACE_0_1;
+template <> const char* interface_name<PPB_PlatformVerification_Private_0_2>() {
+ return PPB_PLATFORMVERIFICATION_PRIVATE_INTERFACE_0_2;
}
inline bool HasInterface() {
- return has_interface<PPB_PlatformVerification_Private_0_1>();
+ return has_interface<PPB_PlatformVerification_Private_0_2>();
}
-inline const PPB_PlatformVerification_Private_0_1* GetInterface() {
- return get_interface<PPB_PlatformVerification_Private_0_1>();
+inline const PPB_PlatformVerification_Private_0_2* GetInterface() {
+ return get_interface<PPB_PlatformVerification_Private_0_2>();
}
} // namespace
@@ -36,15 +36,6 @@ PlatformVerification::PlatformVerification(const InstanceHandle& instance) {
PlatformVerification::~PlatformVerification() {}
-int32_t PlatformVerification::CanChallengePlatform(
- const CompletionCallbackWithOutput<bool>& callback) {
- if (!HasInterface())
- return callback.MayForce(PP_ERROR_NOINTERFACE);
-
- return GetInterface()->CanChallengePlatform(
- pp_resource(), callback.output(), callback.pp_completion_callback());
-}
-
int32_t PlatformVerification::ChallengePlatform(
const Var& service_id,
const Var& challenge,
« no previous file with comments | « ppapi/cpp/private/platform_verification.h ('k') | ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698