summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 05:18:55 +0000
committerraymes@chromium.org <raymes@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-11 05:18:55 +0000
commite6ebc0db428f08bbad6826713b295b50d9afc942 (patch)
tree2dbfca4bb7fa97ce93c9ab76ce055f94da8654fb /ppapi
parentbdc64f9171b0de12e7a7d2304ccc64589d4101c6 (diff)
downloadchromium_src-e6ebc0db428f08bbad6826713b295b50d9afc942.zip
chromium_src-e6ebc0db428f08bbad6826713b295b50d9afc942.tar.gz
chromium_src-e6ebc0db428f08bbad6826713b295b50d9afc942.tar.bz2
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
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/cpp/private/flash_drm.cc2
1 files changed, 1 insertions, 1 deletions
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