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

Unified Diff: headless/app/headless_shell_main.cc

Issue 2470233003: headless: Librarify Headless Shell (Closed)
Patch Set: Created 4 years, 1 month 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 | « headless/app/headless_shell.cc ('k') | headless/public/headless_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell_main.cc
diff --git a/chrome/installer/mac/app/main.m b/headless/app/headless_shell_main.cc
similarity index 55%
copy from chrome/installer/mac/app/main.m
copy to headless/app/headless_shell_main.cc
index 33d21bf5719812ce0e609082979e88918375ba98..3ae4553b06854f9745690e4cc992267a7e4862ad 100644
--- a/chrome/installer/mac/app/main.m
+++ b/headless/app/headless_shell_main.cc
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import <AppKit/AppKit.h>
+#include "headless/public/headless_shell.h"
-int main(int argc, const char* argv[]) {
- return NSApplicationMain(argc, argv);
+int main(int argc, const char** argv) {
+ return headless::HeadlessShellMain(argc, argv);
}
« no previous file with comments | « headless/app/headless_shell.cc ('k') | headless/public/headless_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698