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

Side by Side Diff: chrome/browser/chromeos/system/timezone_util.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: iwyu fixes Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9 9
10 namespace base { 10 namespace base {
11 class ListValue; 11 class ListValue;
12 } 12 }
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 struct TimeZoneResponseData; 16 struct TimeZoneResponseData;
17 17
18 namespace system { 18 namespace system {
19 19
20 // Creates a list of pairs of each timezone's ID and name. 20 // Creates a list of pairs of each timezone's ID and name.
21 scoped_ptr<base::ListValue> GetTimezoneList(); 21 std::unique_ptr<base::ListValue> GetTimezoneList();
22 22
23 // Returns true if device is managed and has SystemTimezonePolicy set. 23 // Returns true if device is managed and has SystemTimezonePolicy set.
24 bool HasSystemTimezonePolicy(); 24 bool HasSystemTimezonePolicy();
25 25
26 // Apply TimeZone update from TimeZoneProvider. 26 // Apply TimeZone update from TimeZoneProvider.
27 void ApplyTimeZone(const TimeZoneResponseData* timezone); 27 void ApplyTimeZone(const TimeZoneResponseData* timezone);
28 28
29 } // namespace system 29 } // namespace system
30 } // namespace chromeos 30 } // namespace chromeos
31 31
32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_ 32 #endif // CHROME_BROWSER_CHROMEOS_SYSTEM_TIMEZONE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698