blob: a0d5351f8d4b6467b3c9a2325bbd4a2886f3d445 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// Copyright (c) 2012 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 "base/at_exit.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "chrome/app/chrome_breakpad_client.h"
#include "components/breakpad/app/breakpad_win.h"
#include "components/nacl/loader/nacl_helper_win_64.h"
#include "content/public/common/content_switches.h"
namespace {
base::LazyInstance<chrome::ChromeBreakpadClient>::Leaky
g_chrome_breakpad_client = LAZY_INSTANCE_INITIALIZER;
} // namespace
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
base::AtExitManager exit_manager;
CommandLine::Init(0, NULL);
std::string process_type =
CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kProcessType);
breakpad::SetBreakpadClient(g_chrome_breakpad_client.Pointer());
breakpad::InitCrashReporter(process_type);
return nacl::NaClWin64Main();
}
|