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

Unified Diff: chrome/ppapi_plugin/ppapi_thread.cc

Issue 6286070: Remove all uses of the global Dispatcher Get function. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | ipc/ipc_test_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/ppapi_plugin/ppapi_thread.cc
===================================================================
--- chrome/ppapi_plugin/ppapi_thread.cc (revision 74021)
+++ chrome/ppapi_plugin/ppapi_thread.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 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.
@@ -25,7 +25,6 @@
}
PpapiThread::~PpapiThread() {
- pp::proxy::PluginDispatcher::SetGlobal(NULL);
}
// The "regular" ChildThread implements this function and does some standard
@@ -38,12 +37,6 @@
bool PpapiThread::OnMessageReceived(const IPC::Message& msg) {
IPC_BEGIN_MESSAGE_MAP(PpapiThread, msg)
IPC_MESSAGE_HANDLER(PpapiMsg_LoadPlugin, OnMsgLoadPlugin)
-
- // The rest of the messages go to the dispatcher.
- /*IPC_MESSAGE_UNHANDLED(
- if (dispatcher_.get())
- dispatcher_->OnMessageReceived(msg)
- )*/
IPC_END_MESSAGE_MAP()
return true;
}
@@ -94,7 +87,6 @@
library_.Reset(library.Release());
dispatcher_.reset(new pp::proxy::PluginDispatcher(
host_process_handle, get_interface, init_module, shutdown_module));
- pp::proxy::PluginDispatcher::SetGlobal(dispatcher_.get());
return true;
}
« no previous file with comments | « no previous file | ipc/ipc_test_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698