blob: 419bff67dbae8ca920eaba6a36635e0878e66fa6 [file] [log] [blame]
[email protected]f2068f92013-05-20 05:30:171// 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 Violetfdd6f352018-01-12 19:12:295#include "chrome/browser/browser_process_platform_part_base.h"
6
[email protected]612d3bf2013-05-22 10:10:467#include "base/logging.h"
avie4d7b6f2015-12-26 00:59:188#include "build/build_config.h"
[email protected]612d3bf2013-05-22 10:10:469#include "chrome/browser/lifetime/application_lifetime.h"
[email protected]97275822014-01-21 19:30:3610#include "chrome/browser/policy/chrome_browser_policy_connector.h"
jam1c5a91492016-02-24 20:47:5311#include "components/policy/core/browser/browser_policy_connector.h"
[email protected]97275822014-01-21 19:30:3612
[email protected]f2068f92013-05-20 05:30:1713BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() {
14}
15
16BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() {
17}
18
19void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing(
[email protected]2f3b1cc2014-03-17 23:07:1520 const base::CommandLine& /* command_line */) {
[email protected]f2068f92013-05-20 05:30:1721}
22
23void BrowserProcessPlatformPartBase::StartTearDown() {
24}
[email protected]612d3bf2013-05-22 10:10:4625
Avi Drissmanf19bb472018-11-29 19:51:2826void BrowserProcessPlatformPartBase::AttemptExit(bool try_to_quit_application) {
jam1c5a91492016-02-24 20:47:5327// chrome::CloseAllBrowsers() doesn't link on OS_ANDROID, but it overrides this
28// method already.
29#if defined(OS_ANDROID)
[email protected]612d3bf2013-05-22 10:10:4630 NOTREACHED();
31#else
32 // On most platforms, closing all windows causes the application to exit.
33 chrome::CloseAllBrowsers();
34#endif
35}
[email protected]90a4b9d2013-07-31 12:14:4036
37void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() {
38}
[email protected]97275822014-01-21 19:30:3639
Scott Violetfdd6f352018-01-12 19:12:2940std::unique_ptr<policy::ChromeBrowserPolicyConnector>
[email protected]97275822014-01-21 19:30:3641BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() {
Scott Violetfdd6f352018-01-12 19:12:2942 return std::make_unique<policy::ChromeBrowserPolicyConnector>();
[email protected]97275822014-01-21 19:30:3643}