| Index: chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
|
| diff --git a/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc b/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..55121cc8abef01eb03bbcc19e0bedeac7d980fdb
|
| --- /dev/null
|
| +++ b/chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc
|
| @@ -0,0 +1,21 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.h"
|
| +
|
| +#include "base/sys_info.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +ScopedSetRunningOnChromeOSForTesting::ScopedSetRunningOnChromeOSForTesting(
|
| + const std::string& lsb_release,
|
| + const base::Time& lsb_release_time) {
|
| + base::SysInfo::SetChromeOSVersionInfoForTest(lsb_release, lsb_release_time);
|
| +}
|
| +
|
| +ScopedSetRunningOnChromeOSForTesting::~ScopedSetRunningOnChromeOSForTesting() {
|
| + base::SysInfo::SetChromeOSVersionInfoForTest("", base::Time());
|
| +}
|
| +
|
| +} // namespace chromeos
|
|
|