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

Unified Diff: chrome/app/chrome_main.cc

Issue 2720863003: Make --headless flag work on Mac (Closed)
Patch Set: Created 3 years, 10 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/app/chrome_main.cc
diff --git a/chrome/app/chrome_main.cc b/chrome/app/chrome_main.cc
index 2210192aa71c441f096499c9c2a25b462bc92c17..ca34c9f7e51c0a2062e141dc4bd55b55e5319347 100644
--- a/chrome/app/chrome_main.cc
+++ b/chrome/app/chrome_main.cc
@@ -22,6 +22,10 @@
#include "services/service_manager/runner/common/client_util.h"
#endif
+#if defined(OS_MACOSX)
+#include "chrome/app/chrome_main_mac.h"
+#endif
+
#if defined(OS_WIN)
#include "base/debug/dump_without_crashing.h"
#include "base/win/win_util.h"
@@ -93,10 +97,14 @@ int ChromeMain(int argc, const char** argv) {
ALLOW_UNUSED_LOCAL(command_line);
#endif
-#if defined(OS_LINUX)
- if (command_line->HasSwitch(switches::kHeadless))
+#if defined(OS_LINUX) || defined(OS_MACOSX)
+ if (command_line->HasSwitch(switches::kHeadless)){
sky 2017/02/28 04:10:27 space between ')' and '{'.
dvallet 2017/02/28 04:55:55 Done.
+#if defined(OS_MACOSX)
+ SetUpBundleOverrides();
+#endif
return headless::HeadlessShellMain(argc, argv);
-#endif // defined(OS_LINUX)
+ }
+#endif // defined(OS_LINUX) || defined(OS_MACOSX)
#if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
version_info::Channel channel = chrome::GetChannel();

Powered by Google App Engine
This is Rietveld 408576698