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

Unified Diff: components/sync_driver/sync_service.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: Build fix, address feedback 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
« no previous file with comments | « components/sync_driver/sync_prefs.cc ('k') | components/sync_driver/sync_stopped_reporter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_service.h
diff --git a/components/sync_driver/sync_service.h b/components/sync_driver/sync_service.h
index b04998b418a316cd1729bf13318b54daadd81f90..4ca8b42e870f5ea9939a74acd6d0cd43f8746cdd 100644
--- a/components/sync_driver/sync_service.h
+++ b/components/sync_driver/sync_service.h
@@ -5,12 +5,12 @@
#ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
#define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
+#include <memory>
#include <string>
#include "base/callback_forward.h"
#include "base/location.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "components/sync_driver/data_type_encryption_handler.h"
@@ -321,7 +321,8 @@ class SyncService : public DataTypeEncryptionHandler {
// For safety, the callback should be bound to some sort of WeakPtr<> or
// scoped_refptr<>.
virtual void GetAllNodes(
- const base::Callback<void(scoped_ptr<base::ListValue>)>& callback) = 0;
+ const base::Callback<void(std::unique_ptr<base::ListValue>)>&
+ callback) = 0;
protected:
SyncService() {}
« no previous file with comments | « components/sync_driver/sync_prefs.cc ('k') | components/sync_driver/sync_stopped_reporter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698