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

Unified Diff: src/shared/ppapi_proxy/browser_ppp.cc

Issue 3391010: Update the PPAPI DEPS revision. This change included parameter profile chang... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 10 years, 3 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 | « src/shared/ppapi_proxy/browser_globals.cc ('k') | src/shared/ppapi_proxy/object_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/browser_ppp.cc
===================================================================
--- src/shared/ppapi_proxy/browser_ppp.cc (revision 3312)
+++ src/shared/ppapi_proxy/browser_ppp.cc (working copy)
@@ -55,6 +55,8 @@
// Export the service on the channel.
channel_->server = service;
char* service_string = const_cast<char*>(service->service_string);
+ // Remember the module_id associated with channel_;
+ SetModuleIdForSrpcChannel(channel_, module_id);
// Do the RPC.
int32_t browser_pid = static_cast<int32_t>(GETPID());
int32_t success;
@@ -79,6 +81,8 @@
PppRpcClient::PPP_ShutdownModule(channel_);
// Clean up the upcall thread for the module.
NaClThreadJoin(&upcall_thread_);
+ // Remove the association between the channel and module id.
+ UnsetModuleIdForSrpcChannel(channel_);
}
const void* BrowserPpp::GetInterface(const char* interface_name) {
« no previous file with comments | « src/shared/ppapi_proxy/browser_globals.cc ('k') | src/shared/ppapi_proxy/object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698