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

Unified Diff: chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm

Issue 2295063002: Use ChannelMojo between app shims and the browser process. (Closed)
Patch Set: Created 4 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
Index: chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm
diff --git a/chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm b/chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm
index c7f1f86fc12c2ef4d3bcd939ceb5df0589e7ad83..f573a13d99c68840e3ed80c4219cd4fd97d4cc90 100644
--- a/chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm
+++ b/chrome/browser/apps/app_shim/app_shim_host_manager_mac.mm
@@ -28,9 +28,9 @@ using content::BrowserThread;
namespace {
-void CreateAppShimHost(const IPC::ChannelHandle& handle) {
+void CreateAppShimHost(mojo::edk::ScopedPlatformHandle handle) {
// AppShimHost takes ownership of itself.
- (new AppShimHost)->ServeChannel(handle);
+ (new AppShimHost)->ServeChannel(std::move(handle));
}
base::FilePath GetDirectoryInTmpTemplate(const base::FilePath& user_data_dir) {
@@ -158,11 +158,11 @@ void AppShimHostManager::ListenOnIOThread() {
}
void AppShimHostManager::OnClientConnected(
- const IPC::ChannelHandle& handle) {
+ mojo::edk::ScopedPlatformHandle handle) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
BrowserThread::PostTask(
BrowserThread::UI, FROM_HERE,
- base::Bind(&CreateAppShimHost, handle));
+ base::Bind(&CreateAppShimHost, base::Passed(&handle)));
}
void AppShimHostManager::OnListenError() {
« no previous file with comments | « chrome/browser/apps/app_shim/app_shim_host_manager_mac.h ('k') | chrome/browser/apps/app_shim/unix_domain_socket_acceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698