[M85 Dev][EFL] Fix errors to generate ninja files
[platform/framework/web/chromium-efl.git] / chrome / browser / browser_process_platform_part_base.cc
1 // Copyright (c) 2013 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
5 #include "chrome/browser/browser_process_platform_part_base.h"
6
7 #include "base/notreached.h"
8 #include "build/build_config.h"
9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #include "chrome/browser/policy/chrome_browser_policy_connector.h"
11 #include "components/policy/core/browser/browser_policy_connector.h"
12
13 BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() {
14 }
15
16 BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() {
17 }
18
19 void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing(
20     const base::CommandLine& /* command_line */) {
21 }
22
23 void BrowserProcessPlatformPartBase::StartTearDown() {
24 }
25
26 void BrowserProcessPlatformPartBase::AttemptExit(bool try_to_quit_application) {
27 // chrome::CloseAllBrowsers() doesn't link on OS_ANDROID, but it overrides this
28 // method already.
29 #if defined(OS_ANDROID)
30   NOTREACHED();
31 #else
32   // On most platforms, closing all windows causes the application to exit.
33   chrome::CloseAllBrowsers();
34 #endif
35 }
36
37 void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() {
38 }
39
40 std::unique_ptr<policy::ChromeBrowserPolicyConnector>
41 BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() {
42   return std::make_unique<policy::ChromeBrowserPolicyConnector>();
43 }