Index: ppapi/proxy/ppb_var_deprecated_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_var_deprecated_proxy.cc (revision 121902) |
+++ ppapi/proxy/ppb_var_deprecated_proxy.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -22,7 +22,6 @@ |
#include "ppapi/proxy/ppp_class_proxy.h" |
#include "ppapi/proxy/serialized_var.h" |
#include "ppapi/shared_impl/ppb_var_shared.h" |
-#include "ppapi/shared_impl/proxy_lock.h" |
#include "ppapi/shared_impl/var.h" |
namespace ppapi { |
@@ -65,7 +64,6 @@ |
bool HasProperty(PP_Var var, |
PP_Var name, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) |
return false; |
@@ -84,7 +82,6 @@ |
bool HasMethod(PP_Var var, |
PP_Var name, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) |
return false; |
@@ -103,7 +100,6 @@ |
PP_Var GetProperty(PP_Var var, |
PP_Var name, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) |
return PP_MakeUndefined(); |
@@ -123,7 +119,6 @@ |
uint32_t* property_count, |
PP_Var** properties, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) { |
*property_count = 0; |
@@ -146,7 +141,6 @@ |
PP_Var name, |
PP_Var value, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) |
return; |
@@ -164,7 +158,6 @@ |
void RemoveProperty(PP_Var var, |
PP_Var name, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, exception); |
if (!dispatcher) |
return; |
@@ -184,7 +177,6 @@ |
uint32_t argc, |
PP_Var* argv, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(object, exception); |
if (!dispatcher) |
return PP_MakeUndefined(); |
@@ -208,7 +200,6 @@ |
uint32_t argc, |
PP_Var* argv, |
PP_Var* exception) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(object, exception); |
if (!dispatcher) |
return PP_MakeUndefined(); |
@@ -230,7 +221,6 @@ |
bool IsInstanceOf(PP_Var var, |
const PPP_Class_Deprecated* ppp_class, |
void** ppp_class_data) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = CheckExceptionAndGetDispatcher(var, NULL); |
if (!dispatcher) |
return false; |
@@ -249,7 +239,6 @@ |
PP_Var CreateObject(PP_Instance instance, |
const PPP_Class_Deprecated* ppp_class, |
void* ppp_class_data) { |
- ProxyAutoLock lock; |
Dispatcher* dispatcher = PluginDispatcher::GetForInstance(instance); |
if (!dispatcher) |
return PP_MakeUndefined(); |
@@ -378,9 +367,9 @@ |
// TODO(piman): See if we can fix the IPC code to enforce strict ordering, and |
// then remove this. |
MessageLoop::current()->PostNonNestableTask(FROM_HERE, |
- RunWhileLocked(base::Bind(&PPB_Var_Deprecated_Proxy::DoReleaseObject, |
- task_factory_.GetWeakPtr(), |
- object_id))); |
+ base::Bind(&PPB_Var_Deprecated_Proxy::DoReleaseObject, |
+ task_factory_.GetWeakPtr(), |
+ object_id)); |
} |
void PPB_Var_Deprecated_Proxy::OnMsgHasProperty( |