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

Unified Diff: content/child/child_thread_impl.cc

Issue 1260053003: Update contents to use attachment broker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_refactor2
Patch Set: Use new api. Created 5 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 | « content/child/child_thread_impl.h ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/child_thread_impl.cc
diff --git a/content/child/child_thread_impl.cc b/content/child/child_thread_impl.cc
index bb9ff52ada297b64abf090ce728a45c0b06e6416..b0b7dd413de91ef89845930cc94a72104e0e24ff 100644
--- a/content/child/child_thread_impl.cc
+++ b/content/child/child_thread_impl.cc
@@ -53,7 +53,7 @@
#include "content/common/child_process_messages.h"
#include "content/common/in_process_child_thread_params.h"
#include "content/public/common/content_switches.h"
-#include "ipc/attachment_broker.h"
+#include "ipc/attachment_broker_unprivileged.h"
#include "ipc/ipc_logging.h"
#include "ipc/ipc_switches.h"
#include "ipc/ipc_sync_channel.h"
@@ -436,6 +436,8 @@ void ChildThreadImpl::Init(const Options& options) {
}
ConnectChannel(options.use_mojo_channel);
+ if (attachment_broker_)
+ attachment_broker_->DesignateBrokerCommunicationChannel(channel_.get());
int connection_timeout = kConnectionTimeoutS;
std::string connection_override =
@@ -592,8 +594,6 @@ bool ChildThreadImpl::OnMessageReceived(const IPC::Message& msg) {
return true;
if (file_system_dispatcher_->OnMessageReceived(msg))
return true;
- if (attachment_broker_ && attachment_broker_->OnMessageReceived(msg))
- return true;
bool handled = true;
IPC_BEGIN_MESSAGE_MAP(ChildThreadImpl, msg)
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/child_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698