summaryrefslogtreecommitdiffstats
path: root/content/browser/mojo/mojo_application_host.cc
diff options
context:
space:
mode:
authormorrita <morrita@chromium.org>2014-09-30 16:59:04 -0700
committerCommit bot <commit-bot@chromium.org>2014-09-30 23:59:15 +0000
commit2c0a563d3019940343e804c7e975bef1bd0f5b54 (patch)
tree3cb2d60fbaeba9221e9ab7bb61493e9443f8073c /content/browser/mojo/mojo_application_host.cc
parent3573622da943ccb017e1dd93791a7efad5a3bcc8 (diff)
downloadchromium_src-2c0a563d3019940343e804c7e975bef1bd0f5b54.zip
chromium_src-2c0a563d3019940343e804c7e975bef1bd0f5b54.tar.gz
chromium_src-2c0a563d3019940343e804c7e975bef1bd0f5b54.tar.bz2
Always activate MojoApplicationHost
Before this change, MojoApplicatioHost was activated only if some browser-side modules requested it. There was no way for renderer to activate it. This CL let MojoApplicationHost always get activated. Now renderer can request services it needs without its own activation flow. R=darin@chromium.org,tsepez@chromium.org TEST=none BUG=none Committed: https://crrev.com/bd0aa4dc467c10a4301e44084d8abbba92a35e56 Cr-Commit-Position: refs/heads/master@{#294969} Review URL: https://codereview.chromium.org/563373002 Cr-Commit-Position: refs/heads/master@{#297551}
Diffstat (limited to 'content/browser/mojo/mojo_application_host.cc')
-rw-r--r--content/browser/mojo/mojo_application_host.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/content/browser/mojo/mojo_application_host.cc b/content/browser/mojo/mojo_application_host.cc
index 3af7974..b752973 100644
--- a/content/browser/mojo/mojo_application_host.cc
+++ b/content/browser/mojo/mojo_application_host.cc
@@ -47,7 +47,7 @@ bool MojoApplicationHost::Init() {
return true;
}
-bool MojoApplicationHost::Activate(IPC::Sender* sender,
+void MojoApplicationHost::Activate(IPC::Sender* sender,
base::ProcessHandle process_handle) {
DCHECK(!did_activate_);
DCHECK(client_handle_.is_valid());
@@ -56,7 +56,6 @@ bool MojoApplicationHost::Activate(IPC::Sender* sender,
PlatformFileFromScopedPlatformHandle(client_handle_.Pass());
did_activate_ = sender->Send(new MojoMsg_Activate(
IPC::GetFileHandleForProcess(client_file, process_handle, true)));
- return did_activate_;
}
void MojoApplicationHost::WillDestroySoon() {