[email protected] | f2068f9 | 2013-05-20 05:30:17 | [diff] [blame] | 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 | |||||
Scott Violet | fdd6f35 | 2018-01-12 19:12:29 | [diff] [blame] | 5 | #include "chrome/browser/browser_process_platform_part_base.h" |
6 | |||||
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 7 | #include "base/logging.h" |
avi | e4d7b6f | 2015-12-26 00:59:18 | [diff] [blame] | 8 | #include "build/build_config.h" |
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 9 | #include "chrome/browser/lifetime/application_lifetime.h" |
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 10 | #include "chrome/browser/policy/chrome_browser_policy_connector.h" |
jam | 1c5a9149 | 2016-02-24 20:47:53 | [diff] [blame] | 11 | #include "components/policy/core/browser/browser_policy_connector.h" |
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 12 | |
[email protected] | f2068f9 | 2013-05-20 05:30:17 | [diff] [blame] | 13 | BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() { |
14 | } | ||||
15 | |||||
16 | BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() { | ||||
17 | } | ||||
18 | |||||
19 | void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing( | ||||
[email protected] | 2f3b1cc | 2014-03-17 23:07:15 | [diff] [blame] | 20 | const base::CommandLine& /* command_line */) { |
[email protected] | f2068f9 | 2013-05-20 05:30:17 | [diff] [blame] | 21 | } |
22 | |||||
23 | void BrowserProcessPlatformPartBase::StartTearDown() { | ||||
24 | } | ||||
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 25 | |
Avi Drissman | f19bb47 | 2018-11-29 19:51:28 | [diff] [blame] | 26 | void BrowserProcessPlatformPartBase::AttemptExit(bool try_to_quit_application) { |
jam | 1c5a9149 | 2016-02-24 20:47:53 | [diff] [blame] | 27 | // chrome::CloseAllBrowsers() doesn't link on OS_ANDROID, but it overrides this |
28 | // method already. | ||||
29 | #if defined(OS_ANDROID) | ||||
[email protected] | 612d3bf | 2013-05-22 10:10:46 | [diff] [blame] | 30 | NOTREACHED(); |
31 | #else | ||||
32 | // On most platforms, closing all windows causes the application to exit. | ||||
33 | chrome::CloseAllBrowsers(); | ||||
34 | #endif | ||||
35 | } | ||||
[email protected] | 90a4b9d | 2013-07-31 12:14:40 | [diff] [blame] | 36 | |
37 | void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() { | ||||
38 | } | ||||
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 39 | |
Scott Violet | fdd6f35 | 2018-01-12 19:12:29 | [diff] [blame] | 40 | std::unique_ptr<policy::ChromeBrowserPolicyConnector> |
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 41 | BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() { |
Scott Violet | fdd6f35 | 2018-01-12 19:12:29 | [diff] [blame] | 42 | return std::make_unique<policy::ChromeBrowserPolicyConnector>(); |
[email protected] | 9727582 | 2014-01-21 19:30:36 | [diff] [blame] | 43 | } |