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

Unified Diff: headless/lib/headless_content_main_delegate.cc

Issue 2762593002: Add --headless flag to Windows (Closed)
Patch Set: re-add missing HEADLESS_EXPORT and child_lib dep to headles_shell and headless_example Created 3 years, 9 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: headless/lib/headless_content_main_delegate.cc
diff --git a/headless/lib/headless_content_main_delegate.cc b/headless/lib/headless_content_main_delegate.cc
index 561f14be35cfa75812c88ee6cc6c9c45f652ab62..da48741e238cf74c54675da0cdc17c5c7332e1ae 100644
--- a/headless/lib/headless_content_main_delegate.cc
+++ b/headless/lib/headless_content_main_delegate.cc
@@ -4,6 +4,8 @@
#include "headless/lib/headless_content_main_delegate.h"
+#include <utility>
+
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/environment.h"
@@ -156,7 +158,7 @@ void HeadlessContentMainDelegate::InitCrashReporter(
g_headless_crash_client.Pointer()->set_crash_dumps_dir(
browser_->options()->crash_dumps_dir);
-#if !defined(OS_MACOSX)
+#if defined(OS_LINUX)
if (!browser_->options()->enable_crash_reporter) {
DCHECK(!breakpad::IsCrashReporterEnabled());
return;
@@ -165,7 +167,7 @@ void HeadlessContentMainDelegate::InitCrashReporter(
if (process_type != switches::kZygoteProcess)
breakpad::InitCrashReporter(process_type);
#endif // defined(HEADLESS_USE_BREAKPAD)
-#endif // !defined(OS_MACOSX)
+#endif // defined(OS_LINUX)
}
void HeadlessContentMainDelegate::PreSandboxStartup() {

Powered by Google App Engine
This is Rietveld 408576698