| Index: chrome/browser/browser_process_platform_part_chromeos.cc
|
| diff --git a/chrome/browser/browser_process_platform_part_chromeos.cc b/chrome/browser/browser_process_platform_part_chromeos.cc
|
| index 11cacb3252976ac24434ba7fce450764e5459c5f..1821785a7403fe1a557ddcd1033f973333528efd 100644
|
| --- a/chrome/browser/browser_process_platform_part_chromeos.cc
|
| +++ b/chrome/browser/browser_process_platform_part_chromeos.cc
|
| @@ -4,8 +4,12 @@
|
|
|
| #include "chrome/browser/browser_process_platform_part_chromeos.h"
|
|
|
| +#include "base/logging.h"
|
| +#include "base/time/default_tick_clock.h"
|
| +#include "base/time/tick_clock.h"
|
| #include "chrome/browser/chromeos/memory/oom_priority_manager.h"
|
| #include "chrome/browser/chromeos/profiles/profile_helper.h"
|
| +#include "chrome/browser/chromeos/system/automatic_reboot_manager.h"
|
|
|
| BrowserProcessPlatformPart::BrowserProcessPlatformPart()
|
| : created_profile_helper_(false) {
|
| @@ -14,6 +18,17 @@ BrowserProcessPlatformPart::BrowserProcessPlatformPart()
|
| BrowserProcessPlatformPart::~BrowserProcessPlatformPart() {
|
| }
|
|
|
| +void BrowserProcessPlatformPart::InitializeAutomaticRebootManager() {
|
| + DCHECK(!automatic_reboot_manager_);
|
| +
|
| + automatic_reboot_manager_.reset(new chromeos::system::AutomaticRebootManager(
|
| + scoped_ptr<base::TickClock>(new base::DefaultTickClock)));
|
| +}
|
| +
|
| +void BrowserProcessPlatformPart::ShutdownAutomaticRebootManager() {
|
| + automatic_reboot_manager_.reset();
|
| +}
|
| +
|
| chromeos::OomPriorityManager*
|
| BrowserProcessPlatformPart::oom_priority_manager() {
|
| DCHECK(CalledOnValidThread());
|
|
|