Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: chrome/browser/browser_process_platform_part_chromeos.cc

Issue 670623002: Change base::TickClock to a ref counted class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@audio_redesign
Patch Set: y Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | chrome/browser/chromeos/system/automatic_reboot_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698