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

Side by Side Diff: content/browser/time_zone_monitor_linux.cc

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « content/browser/time_zone_monitor_chromeos.cc ('k') | content/browser/time_zone_monitor_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/time_zone_monitor_chromeos.cc ('k') | content/browser/time_zone_monitor_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698