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

Unified Diff: components/sync_driver/device_info_tracker.h

Issue 1907683003: Convert //components/sync_driver 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/sync_driver/device_info_tracker.h
diff --git a/components/sync_driver/device_info_tracker.h b/components/sync_driver/device_info_tracker.h
index f506330fae85323287ab3f30deabd6348ae178b1..f9e4b54c9804965a29e24f32be690086fe39cfd4 100644
--- a/components/sync_driver/device_info_tracker.h
+++ b/components/sync_driver/device_info_tracker.h
@@ -5,9 +5,9 @@
#ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_
#define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "components/sync_driver/device_info.h"
@@ -29,7 +29,7 @@ class DeviceInfoTracker {
// Gets DeviceInfo the synced device with specified client ID.
// Returns an empty scoped_ptr if device with the given |client_id| hasn't
// been synced.
- virtual scoped_ptr<DeviceInfo> GetDeviceInfo(
+ virtual std::unique_ptr<DeviceInfo> GetDeviceInfo(
const std::string& client_id) const = 0;
// Gets DeviceInfo for all synced devices (including the local one).
virtual ScopedVector<DeviceInfo> GetAllDeviceInfo() const = 0;

Powered by Google App Engine
This is Rietveld 408576698