diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 18:22:49 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-14 18:22:49 +0000 |
commit | aa036eee91668fd6f60791fd44df9153a8869072 (patch) | |
tree | 0bcd6c7c067f2834e4bbbb754352bdb5a7108bde /ppapi/proxy/ppp_instance_private_proxy_unittest.cc | |
parent | 28fa793cc1c6f9945bb2dacce70a48cc72e100c7 (diff) | |
download | chromium_src-aa036eee91668fd6f60791fd44df9153a8869072.zip chromium_src-aa036eee91668fd6f60791fd44df9153a8869072.tar.gz chromium_src-aa036eee91668fd6f60791fd44df9153a8869072.tar.bz2 |
Revert 121901 - PPAPI: Add unlocking for PPP calls and callbacks. Add more locking.
With this patch, ppapi_tests pass locally when building with enable_pepper_threading=1. (They didn't before).
TODO: Test more calls off the main thread, make sync completion callbacks work.
BUG=92909
TEST=
Review URL: http://codereview.chromium.org/9391006
TBR=dmichael@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9348092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@121903 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/proxy/ppp_instance_private_proxy_unittest.cc')
-rw-r--r-- | ppapi/proxy/ppp_instance_private_proxy_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ppapi/proxy/ppp_instance_private_proxy_unittest.cc b/ppapi/proxy/ppp_instance_private_proxy_unittest.cc index 957a3a7..6b87f12 100644 --- a/ppapi/proxy/ppp_instance_private_proxy_unittest.cc +++ b/ppapi/proxy/ppp_instance_private_proxy_unittest.cc @@ -58,7 +58,7 @@ PP_Var GetInstanceObject(PP_Instance /*instance*/) { // The 1 ref we got from CreateObject will be passed to the host. We want to // have a ref of our own. printf("GetInstanceObject called\n"); - plugin_var_deprecated_if()->AddRef(instance_obj); + PpapiGlobals::Get()->GetVarTracker()->AddRefVar(instance_obj); return instance_obj; } |