Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / nacl / nacl_exe_win_64.cc
blobc7008fc7fb2e4a97c1f16c740170bab99d9f87a6
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "base/at_exit.h"
6 #include "base/command_line.h"
7 #include "base/lazy_instance.h"
8 #include "chrome/app/chrome_crash_reporter_client.h"
9 #include "components/crash/app/breakpad_win.h"
10 #include "components/nacl/loader/nacl_helper_win_64.h"
11 #include "content/public/common/content_switches.h"
13 namespace {
15 base::LazyInstance<chrome::ChromeCrashReporterClient>::Leaky
16 g_chrome_crash_client = LAZY_INSTANCE_INITIALIZER;
18 } // namespace
20 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
21 base::AtExitManager exit_manager;
22 base::CommandLine::Init(0, NULL);
24 std::string process_type =
25 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
26 switches::kProcessType);
27 crash_reporter::SetCrashReporterClient(g_chrome_crash_client.Pointer());
28 breakpad::InitCrashReporter(process_type);
30 return nacl::NaClWin64Main();