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

Unified Diff: components/network_time/network_time_tracker.h

Issue 1918083002: Convert //components/[f-n]* 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 side-by-side diff with in-line comments
Download patch
Index: components/network_time/network_time_tracker.h
diff --git a/components/network_time/network_time_tracker.h b/components/network_time/network_time_tracker.h
index dc7524a58302b2748c33941bc40938a73f792392..7f2eb8792031d2cf56c13c17dda1b49909a0e000 100644
--- a/components/network_time/network_time_tracker.h
+++ b/components/network_time/network_time_tracker.h
@@ -5,8 +5,9 @@
#ifndef COMPONENTS_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
#define COMPONENTS_NETWORK_TIME_NETWORK_TIME_TRACKER_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/threading/thread_checker.h"
#include "base/time/clock.h"
#include "base/time/time.h"
@@ -33,8 +34,8 @@ class NetworkTimeTracker {
public:
static void RegisterPrefs(PrefRegistrySimple* registry);
- NetworkTimeTracker(scoped_ptr<base::Clock> clock,
- scoped_ptr<base::TickClock> tick_clock,
+ NetworkTimeTracker(std::unique_ptr<base::Clock> clock,
+ std::unique_ptr<base::TickClock> tick_clock,
PrefService* pref_service);
~NetworkTimeTracker();
@@ -64,8 +65,8 @@ class NetworkTimeTracker {
// The |Clock| and |TickClock| are used to sanity-check one another, allowing
// the NetworkTimeTracker to notice e.g. suspend/resume events and clock
// resets.
- scoped_ptr<base::Clock> clock_;
- scoped_ptr<base::TickClock> tick_clock_;
+ std::unique_ptr<base::Clock> clock_;
+ std::unique_ptr<base::TickClock> tick_clock_;
PrefService* pref_service_;
« no previous file with comments | « components/network_hints/renderer/dns_prefetch_queue.h ('k') | components/network_time/network_time_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698