summaryrefslogtreecommitdiff
path: root/chromium/weblayer/shell/app/shell_main.cc
blob: 41a26d12b707d08face3b94fa06218baef9566db (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
// Copyright 2019 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 "weblayer/public/main.h"
#include "weblayer/shell/app/shell_main_params.h"

#if defined(OS_WIN)

#if defined(WIN_CONSOLE_APP)
int main() {
  return weblayer::Main(weblayer::CreateMainParams());
#else
int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
  return weblayer::Main(weblayer::CreateMainParams(), instance);
#endif
}

#else

int main(int argc, const char** argv) {
  return weblayer::Main(weblayer::CreateMainParams(), argc, argv);
}

#endif  // OS_POSIX