From e6ebc0db428f08bbad6826713b295b50d9afc942 Mon Sep 17 00:00:00 2001 From: "raymes@chromium.org" Date: Fri, 11 Oct 2013 05:18:55 +0000 Subject: Return appropriate error codes for PPB_Flash_DRM Currently we return PP_ERROR_FAILED for all error codes related to the flash device ID. This returns codes that allow the caller to distinguish between failures that occur because the user doesn't have access to the device ID (e.g. because they have disabled it in their content setting or they are in incognito mode) and other errors. It also fixes an error code returned when the DRM interface isn't available when calling GetVoucherFile. BUG= Review URL: https://codereview.chromium.org/25954004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228120 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/cpp/private/flash_drm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ppapi') diff --git a/ppapi/cpp/private/flash_drm.cc b/ppapi/cpp/private/flash_drm.cc index 44887ab..f576fb2 100644 --- a/ppapi/cpp/private/flash_drm.cc +++ b/ppapi/cpp/private/flash_drm.cc @@ -71,7 +71,7 @@ int32_t DRM::GetVoucherFile( callback.output(), callback.pp_completion_callback()); } - return PP_ERROR_FAILED; + return PP_ERROR_NOINTERFACE; } } // namespace flash -- cgit v1.1