Commit 2d9ed2a2 authored by Christopher Cameron's avatar Christopher Cameron Committed by Commit Bot

RemoteMacViews: Initialize WindowResizeHelperMac

This was accidentally dropped from crrev.com/594134

Bug: 859152
Change-Id: I159af36686ce07300969f2eaf79796be85f012e5
Reviewed-on: https://chromium-review.googlesource.com/1244886
Commit-Queue: ccameron <ccameron@chromium.org>
Reviewed-by: default avatarccameron <ccameron@chromium.org>
Reviewed-by: default avatarSidney San Martín <sdy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#594941}
parent 22857e44
......@@ -20,6 +20,7 @@ source_set("app_shim") {
"//chrome/common:mojo_bindings",
"//ipc",
"//mojo/core/embedder",
"//ui/accelerated_widget_mac",
"//ui/base",
"//ui/views:views",
]
......
......@@ -42,6 +42,7 @@
#include "mojo/public/cpp/bindings/binding.h"
#include "mojo/public/cpp/platform/named_platform_channel.h"
#include "mojo/public/cpp/system/isolated_connection.h"
#include "ui/accelerated_widget_mac/window_resize_helper_mac.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/views/cocoa/bridge_factory_impl.h"
......@@ -650,6 +651,7 @@ int ChromeAppModeStart_v4(const app_mode::ChromeAppModeInfo* info) {
AppShimController controller;
base::MessageLoopForUI main_message_loop;
base::PlatformThread::SetName("CrAppShimMain");
ui::WindowResizeHelperMac::Get()->Init(base::ThreadTaskRunnerHandle::Get());
// In tests, launching Chrome does nothing, and we won't get a ping response,
// so just assume the socket exists.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment