| Index: headless/lib/browser/headless_browser_main_parts_mac.mm
|
| diff --git a/headless/lib/browser/headless_browser_main_parts_mac.mm b/headless/lib/browser/headless_browser_main_parts_mac.mm
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e8ab0a3e0f0ef6c4456993a367266116967126e0
|
| --- /dev/null
|
| +++ b/headless/lib/browser/headless_browser_main_parts_mac.mm
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "headless/lib/browser/headless_browser_main_parts.h"
|
| +
|
| +#import <Cocoa/Cocoa.h>
|
| +
|
| +#include "headless/lib/browser/headless_shell_application_mac.h"
|
| +
|
| +namespace headless {
|
| +
|
| +void HeadlessBrowserMainParts::PreMainMessageLoopStart() {
|
| + // Force the NSApplication subclass to be used.
|
| + [HeadlessShellCrApplication sharedApplication];
|
| +}
|
| +
|
| +} // namespace headless
|
|
|