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 "chrome/browser/browser_process_platform_part_chromeos.h" | 5 #include "chrome/browser/browser_process_platform_part_chromeos.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/time/default_tick_clock.h" | 9 #include "base/time/default_tick_clock.h" |
10 #include "base/time/tick_clock.h" | 10 #include "base/time/tick_clock.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 : created_profile_helper_(false) { | 22 : created_profile_helper_(false) { |
23 } | 23 } |
24 | 24 |
25 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { | 25 BrowserProcessPlatformPart::~BrowserProcessPlatformPart() { |
26 } | 26 } |
27 | 27 |
28 void BrowserProcessPlatformPart::InitializeAutomaticRebootManager() { | 28 void BrowserProcessPlatformPart::InitializeAutomaticRebootManager() { |
29 DCHECK(!automatic_reboot_manager_); | 29 DCHECK(!automatic_reboot_manager_); |
30 | 30 |
31 automatic_reboot_manager_.reset(new chromeos::system::AutomaticRebootManager( | 31 automatic_reboot_manager_.reset(new chromeos::system::AutomaticRebootManager( |
32 scoped_ptr<base::TickClock>(new base::DefaultTickClock))); | 32 scoped_refptr<base::TickClock>(new base::DefaultTickClock))); |
33 } | 33 } |
34 | 34 |
35 void BrowserProcessPlatformPart::ShutdownAutomaticRebootManager() { | 35 void BrowserProcessPlatformPart::ShutdownAutomaticRebootManager() { |
36 automatic_reboot_manager_.reset(); | 36 automatic_reboot_manager_.reset(); |
37 } | 37 } |
38 | 38 |
39 void BrowserProcessPlatformPart::InitializeChromeUserManager() { | 39 void BrowserProcessPlatformPart::InitializeChromeUserManager() { |
40 DCHECK(!chrome_user_manager_); | 40 DCHECK(!chrome_user_manager_); |
41 chrome_user_manager_ = | 41 chrome_user_manager_ = |
42 chromeos::ChromeUserManagerImpl::CreateChromeUserManager(); | 42 chromeos::ChromeUserManagerImpl::CreateChromeUserManager(); |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 BrowserProcessPlatformPart::CreateBrowserPolicyConnector() { | 95 BrowserProcessPlatformPart::CreateBrowserPolicyConnector() { |
96 return scoped_ptr<policy::BrowserPolicyConnector>( | 96 return scoped_ptr<policy::BrowserPolicyConnector>( |
97 new policy::BrowserPolicyConnectorChromeOS()); | 97 new policy::BrowserPolicyConnectorChromeOS()); |
98 } | 98 } |
99 | 99 |
100 void BrowserProcessPlatformPart::CreateProfileHelper() { | 100 void BrowserProcessPlatformPart::CreateProfileHelper() { |
101 DCHECK(!created_profile_helper_ && profile_helper_.get() == NULL); | 101 DCHECK(!created_profile_helper_ && profile_helper_.get() == NULL); |
102 created_profile_helper_ = true; | 102 created_profile_helper_ = true; |
103 profile_helper_.reset(new chromeos::ProfileHelper()); | 103 profile_helper_.reset(new chromeos::ProfileHelper()); |
104 } | 104 } |
OLD | NEW |