shell_main.cc 700 B

1234567891011121314151617181920212223242526
  1. // Copyright 2019 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.
  4. #include "build/build_config.h"
  5. #include "weblayer/public/main.h"
  6. #include "weblayer/shell/app/shell_main_params.h"
  7. #if BUILDFLAG(IS_WIN)
  8. #if defined(WIN_CONSOLE_APP)
  9. int main() {
  10. return weblayer::Main(weblayer::CreateMainParams());
  11. #else
  12. int APIENTRY wWinMain(HINSTANCE instance, HINSTANCE, wchar_t*, int) {
  13. return weblayer::Main(weblayer::CreateMainParams(), instance);
  14. #endif
  15. }
  16. #else
  17. int main(int argc, const char** argv) {
  18. return weblayer::Main(weblayer::CreateMainParams(), argc, argv);
  19. }
  20. #endif // BUILDFLAG(IS_WIN)