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

Side by Side Diff: chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.cc

Issue 2907493002: ChromeOS: Per-user time zone: refactor tests first. (Closed)
Patch Set: Fix debug build Created 3 years, 6 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
(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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/scoped_set_running_on_chromeos_for_testing.h ('k') | chrome/browser/extensions/active_tab_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698