Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(681)

Unified Diff: ppapi/proxy/host_dispatcher.cc

Issue 7540032: Allow reentrancy for HostDispatcher::GetProxiedInterface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/host_dispatcher.cc
diff --git a/ppapi/proxy/host_dispatcher.cc b/ppapi/proxy/host_dispatcher.cc
index 1137a544c5a08a34f15014d5e77b527ca8b74aa2..82b353e760efe98ad8977b0b13f9a9149b22430b 100644
--- a/ppapi/proxy/host_dispatcher.cc
+++ b/ppapi/proxy/host_dispatcher.cc
@@ -211,7 +211,12 @@ const void* HostDispatcher::GetProxiedInterface(const std::string& interface) {
if (iter == plugin_if_supported_.end()) {
// Need to query. Cache the result so we only do this once.
bool supported = false;
+
+ bool previous_reentrancy_value = allow_plugin_reentrancy_;
+ allow_plugin_reentrancy_ = true;
Send(new PpapiMsg_SupportsInterface(interface, &supported));
+ allow_plugin_reentrancy_ = previous_reentrancy_value;
+
std::pair<PluginIFSupportedMap::iterator, bool> iter_success_pair;
iter_success_pair = plugin_if_supported_.insert(
PluginIFSupportedMap::value_type(interface, supported));
@@ -271,4 +276,3 @@ ScopedModuleReference::~ScopedModuleReference() {
} // namespace proxy
} // namespace pp
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698