OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "content/browser/time_zone_monitor.h" | 5 #include "content/browser/time_zone_monitor.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 } | 153 } |
154 | 154 |
155 TimeZoneMonitorLinux::~TimeZoneMonitorLinux() { | 155 TimeZoneMonitorLinux::~TimeZoneMonitorLinux() { |
156 if (impl_.get()) { | 156 if (impl_.get()) { |
157 impl_->StopWatching(); | 157 impl_->StopWatching(); |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 // static | 161 // static |
162 scoped_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { | 162 std::unique_ptr<TimeZoneMonitor> TimeZoneMonitor::Create() { |
163 return scoped_ptr<TimeZoneMonitor>(new TimeZoneMonitorLinux()); | 163 return std::unique_ptr<TimeZoneMonitor>(new TimeZoneMonitorLinux()); |
164 } | 164 } |
165 | 165 |
166 } // namespace content | 166 } // namespace content |
167 | 167 |
168 #endif // !OS_CHROMEOS | 168 #endif // !OS_CHROMEOS |
OLD | NEW |