OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.h" |
| 6 |
| 7 #include "base/sys_info.h" |
| 8 |
| 9 namespace chromeos { |
| 10 |
| 11 ScopedSetRunningOnChromeOSForTesting::ScopedSetRunningOnChromeOSForTesting( |
| 12 const std::string& lsb_release, |
| 13 const base::Time& lsb_release_time) { |
| 14 base::SysInfo::SetChromeOSVersionInfoForTest(lsb_release, lsb_release_time); |
| 15 } |
| 16 |
| 17 ScopedSetRunningOnChromeOSForTesting::~ScopedSetRunningOnChromeOSForTesting() { |
| 18 base::SysInfo::SetChromeOSVersionInfoForTest("", base::Time()); |
| 19 } |
| 20 |
| 21 } // namespace chromeos |
OLD | NEW |