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

Unified Diff: apps/shell/app/shell_main.cc

Issue 136093011: [App Shell] Port app_shell to windows aura. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 10 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
« no previous file with comments | « apps/shell/app/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/shell/app/shell_main.cc
diff --git a/apps/shell/app/shell_main.cc b/apps/shell/app/shell_main.cc
index c81cfa0e1622dbadb240d9ca5e2d330224def6ff..687c61be5fb9ff776fe2c1289a1d068dfcefd1ca 100644
--- a/apps/shell/app/shell_main.cc
+++ b/apps/shell/app/shell_main.cc
@@ -5,7 +5,25 @@
#include "apps/shell/app/shell_main_delegate.h"
#include "content/public/app/content_main.h"
+#if defined(OS_WIN)
+#include "content/public/app/startup_helper_win.h"
+#include "sandbox/win/src/sandbox_types.h"
+#endif
+
+#if defined(OS_WIN)
+
+int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
+ sandbox::SandboxInterfaceInfo sandbox_info = {0};
+ content::InitializeSandboxInfo(&sandbox_info);
+ apps::ShellMainDelegate delegate;
+ return content::ContentMain(instance, &sandbox_info, &delegate);
+}
+
+#else
+
int main(int argc, const char** argv) {
apps::ShellMainDelegate delegate;
return content::ContentMain(argc, argv, &delegate);
}
+
+#endif // OS_WIN
« no previous file with comments | « apps/shell/app/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698