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

Side by Side Diff: headless/lib/headless_content_main_delegate.cc

Issue 2887033003: Add specific headless_shell_win.cc and headless_content_main_delegate_win.cc (Closed)
Patch Set: fix comment typo Created 3 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "headless/lib/headless_content_main_delegate.h" 5 #include "headless/lib/headless_content_main_delegate.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 #if defined(HEADLESS_USE_BREAKPAD) 174 #if defined(HEADLESS_USE_BREAKPAD)
175 if (!browser_->options()->enable_crash_reporter) { 175 if (!browser_->options()->enable_crash_reporter) {
176 DCHECK(!breakpad::IsCrashReporterEnabled()); 176 DCHECK(!breakpad::IsCrashReporterEnabled());
177 return; 177 return;
178 } 178 }
179 if (process_type != switches::kZygoteProcess) 179 if (process_type != switches::kZygoteProcess)
180 breakpad::InitCrashReporter(process_type); 180 breakpad::InitCrashReporter(process_type);
181 #elif defined(OS_MACOSX) 181 #elif defined(OS_MACOSX)
182 crash_reporter::InitializeCrashpad(process_type.empty(), process_type); 182 crash_reporter::InitializeCrashpad(process_type.empty(), process_type);
183 // Avoid adding this dependency in Windows Chrome component build, since 183 // Avoid adding this dependency in Windows Chrome component build, since
184 // chrashpad is already enabled. 184 // crashpad is already enabled.
185 // TODO(dvallet): Ideally we would also want to avoid this for component build. 185 // TODO(dvallet): Ideally we would also want to avoid this for component build.
186 #elif defined(OS_WIN) && !defined(CHROME_MULTIPLE_DLL) 186 #elif defined(OS_WIN) && !defined(CHROME_MULTIPLE_DLL)
187 crash_reporter::InitializeCrashpadWithEmbeddedHandler(process_type.empty(), 187 crash_reporter::InitializeCrashpadWithEmbeddedHandler(process_type.empty(),
188 process_type); 188 process_type);
189 #endif // defined(HEADLESS_USE_BREAKPAD) 189 #endif // defined(HEADLESS_USE_BREAKPAD)
190 } 190 }
191 191
192 void HeadlessContentMainDelegate::PreSandboxStartup() { 192 void HeadlessContentMainDelegate::PreSandboxStartup() {
193 const base::CommandLine& command_line( 193 const base::CommandLine& command_line(
194 *base::CommandLine::ForCurrentProcess()); 194 *base::CommandLine::ForCurrentProcess());
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 #if !defined(CHROME_MULTIPLE_DLL_BROWSER) 301 #if !defined(CHROME_MULTIPLE_DLL_BROWSER)
302 content::ContentRendererClient* 302 content::ContentRendererClient*
303 HeadlessContentMainDelegate::CreateContentRendererClient() { 303 HeadlessContentMainDelegate::CreateContentRendererClient() {
304 renderer_client_ = base::MakeUnique<HeadlessContentRendererClient>(); 304 renderer_client_ = base::MakeUnique<HeadlessContentRendererClient>();
305 return renderer_client_.get(); 305 return renderer_client_.get();
306 } 306 }
307 #endif // !defined(CHROME_MULTIPLE_DLL_BROWSER) 307 #endif // !defined(CHROME_MULTIPLE_DLL_BROWSER)
308 308
309 } // namespace headless 309 } // namespace headless
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698