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

Unified Diff: chrome/nacl/nacl_exe_win_64.cc

Issue 7863024: Make the NaCl windows 64 bit binaries not depend on chrome targets. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove nacl_win64 and dummy hacks Created 9 years, 3 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/nacl/nacl_exe_win_64.cc
===================================================================
--- chrome/nacl/nacl_exe_win_64.cc (revision 0)
+++ chrome/nacl/nacl_exe_win_64.cc (revision 0)
@@ -0,0 +1,21 @@
+// Copyright (c) 2011 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/scoped_ptr.h"
+#include "chrome/app/client_util.h"
+#include "content/app/sandbox_helper_win.h"
+#include "sandbox/src/sandbox_types.h"
+
+int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
Brad Chen (chromium) 2011/09/11 17:35:37 For my edification, what does the w before WinMain
jam 2011/09/11 22:51:37 This is the entry point that Windows looks for. Th
+ sandbox::SandboxInterfaceInfo sandbox_info = {0};
+ content::InitializeSandboxInfo(&sandbox_info);
+
+ base::AtExitManager exit_manager;
+ CommandLine::Init(0, NULL);
+
+ scoped_ptr<MainDllLoader> loader(MakeMainDllLoader());
+ return loader->Launch(instance, &sandbox_info);
+}
Property changes on: chrome\nacl\nacl_exe_win_64.cc
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698