Fixed service side implementation of glTexStorage2DEXT to only initialize the number of
[chromium-blink-merge.git] / content / shell / shell_main.cc
blobb998aed379f2bbfd20e4d0908d874ffda9137466
1 // Copyright (c) 2011 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 "content/app/content_main.h"
7 #include "content/shell/shell_main_delegate.h"
8 #include "sandbox/src/sandbox_types.h"
10 #if defined(OS_WIN)
11 #include "content/public/app/startup_helper_win.h"
12 #endif
14 #if defined(OS_WIN)
16 int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
17 sandbox::SandboxInterfaceInfo sandbox_info = {0};
18 content::InitializeSandboxInfo(&sandbox_info);
19 ShellMainDelegate delegate;
20 return content::ContentMain(instance, &sandbox_info, &delegate);
22 #endif
24 #if defined(OS_POSIX)
26 #if defined(OS_MACOSX)
27 __attribute__((visibility("default")))
28 int main(int argc, const char* argv[]) {
29 #else
30 int main(int argc, const char** argv) {
31 #endif // OS_MACOSX
33 ShellMainDelegate delegate;
34 return content::ContentMain(argc, argv, &delegate);
37 #endif // OS_POSIX