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

Unified Diff: chrome/browser/sync_file_system/drive_backend/list_changes_task.h

Issue 1873683002: Convert //chrome/browser/sync_file_system 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: chrome/browser/sync_file_system/drive_backend/list_changes_task.h
diff --git a/chrome/browser/sync_file_system/drive_backend/list_changes_task.h b/chrome/browser/sync_file_system/drive_backend/list_changes_task.h
index 7e9255e8e220e7c95c072337960af5823f277a1f..9b47673eccafec5ee3c352246274583d014c127f 100644
--- a/chrome/browser/sync_file_system/drive_backend/list_changes_task.h
+++ b/chrome/browser/sync_file_system/drive_backend/list_changes_task.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/sync_file_system/drive_backend/sync_task.h"
@@ -34,15 +35,15 @@ class ListChangesTask : public SyncTask {
explicit ListChangesTask(SyncEngineContext* sync_context);
~ListChangesTask() override;
- void RunPreflight(scoped_ptr<SyncTaskToken> token) override;
+ void RunPreflight(std::unique_ptr<SyncTaskToken> token) override;
private:
- void StartListing(scoped_ptr<SyncTaskToken> token);
- void DidListChanges(scoped_ptr<SyncTaskToken> token,
+ void StartListing(std::unique_ptr<SyncTaskToken> token);
+ void DidListChanges(std::unique_ptr<SyncTaskToken> token,
google_apis::DriveApiErrorCode error,
- scoped_ptr<google_apis::ChangeList> change_list);
+ std::unique_ptr<google_apis::ChangeList> change_list);
void CheckInChangeList(int64_t largest_change_id,
- scoped_ptr<SyncTaskToken> token);
+ std::unique_ptr<SyncTaskToken> token);
bool IsContextReady();
MetadataDatabase* metadata_database();

Powered by Google App Engine
This is Rietveld 408576698