summaryrefslogtreecommitdiffstats
path: root/ash/launcher
diff options
context:
space:
mode:
authorxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-26 20:41:26 +0000
committerxhwang@chromium.org <xhwang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-26 20:41:26 +0000
commit3b274b448e898b6bdddea3807137f51d7837cc08 (patch)
tree4f1738fc5f0f3cf7a8b32c187785aa1e59c7776b /ash/launcher
parent1cf5550dcad4d01e349380fbbec068839716421c (diff)
downloadchromium_src-3b274b448e898b6bdddea3807137f51d7837cc08.zip
chromium_src-3b274b448e898b6bdddea3807137f51d7837cc08.tar.gz
chromium_src-3b274b448e898b6bdddea3807137f51d7837cc08.tar.bz2
Fire KeyError in CdmWrapper if the CDM instance cannot be created.
Even with the KeyError fired when CDM instance creation failed, the application could ignore the KeyError and still calls AddKey. The media pipeline also has no idea about this failure and could call Decrypt/Decode functions. Added check on |cdm_| to prevent crash in these cases. Also did some clean-up in cdm_wrapper.cc: 1, Inline accessor/getter definitions. 2, Reorder calsses to group similar classes together. 3, Replace reinterpret_cast<T*>(void*) with static_cast. BUG=none TEST=encrypted file still plays :) Review URL: https://chromiumcodereview.appspot.com/11270043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164397 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/launcher')
0 files changed, 0 insertions, 0 deletions