| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "chrome/browser/browser_process_platform_part_base.h" | 6 #include "chrome/browser/browser_process_platform_part_base.h" |
| 7 #include "chrome/browser/lifetime/application_lifetime.h" | 7 #include "chrome/browser/lifetime/application_lifetime.h" |
| 8 | 8 |
| 9 #if defined(ENABLE_CONFIGURATION_POLICY) | 9 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 10 #include "components/policy/core/browser/browser_policy_connector.h" |
| 11 #if !defined(OS_IOS) |
| 10 #include "chrome/browser/policy/chrome_browser_policy_connector.h" | 12 #include "chrome/browser/policy/chrome_browser_policy_connector.h" |
| 11 #endif | 13 #endif |
| 14 #endif |
| 12 | 15 |
| 13 BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() { | 16 BrowserProcessPlatformPartBase::BrowserProcessPlatformPartBase() { |
| 14 } | 17 } |
| 15 | 18 |
| 16 BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() { | 19 BrowserProcessPlatformPartBase::~BrowserProcessPlatformPartBase() { |
| 17 } | 20 } |
| 18 | 21 |
| 19 void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing( | 22 void BrowserProcessPlatformPartBase::PlatformSpecificCommandLineProcessing( |
| 20 const CommandLine& /* command_line */) { | 23 const CommandLine& /* command_line */) { |
| 21 } | 24 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 chrome::CloseAllBrowsers(); | 36 chrome::CloseAllBrowsers(); |
| 34 #endif | 37 #endif |
| 35 } | 38 } |
| 36 | 39 |
| 37 void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() { | 40 void BrowserProcessPlatformPartBase::PreMainMessageLoopRun() { |
| 38 } | 41 } |
| 39 | 42 |
| 40 #if defined(ENABLE_CONFIGURATION_POLICY) | 43 #if defined(ENABLE_CONFIGURATION_POLICY) |
| 41 scoped_ptr<policy::BrowserPolicyConnector> | 44 scoped_ptr<policy::BrowserPolicyConnector> |
| 42 BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() { | 45 BrowserProcessPlatformPartBase::CreateBrowserPolicyConnector() { |
| 46 #if defined(OS_IOS) |
| 47 NOTREACHED(); |
| 48 return scoped_ptr<policy::BrowserPolicyConnector>(); |
| 49 #else |
| 43 return scoped_ptr<policy::BrowserPolicyConnector>( | 50 return scoped_ptr<policy::BrowserPolicyConnector>( |
| 44 new policy::ChromeBrowserPolicyConnector()); | 51 new policy::ChromeBrowserPolicyConnector()); |
| 52 #endif |
| 45 } | 53 } |
| 46 #endif | 54 #endif |
| OLD | NEW |