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

Unified Diff: chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.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/metadata_database_index_interface.h
diff --git a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h
index 622c35c39223dd67b24939fe10becebd869e7012..393ece4e82008ef61da5f389c5664f0d33481a97 100644
--- a/chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h
+++ b/chrome/browser/sync_file_system/drive_backend/metadata_database_index_interface.h
@@ -8,11 +8,11 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace sync_file_system {
namespace drive_backend {
@@ -53,11 +53,11 @@ class MetadataDatabaseIndexInterface {
// Stores |metadata| and updates indexes.
// This overwrites existing FileMetadata for the same |file_id|.
- virtual void StoreFileMetadata(scoped_ptr<FileMetadata> metadata) = 0;
+ virtual void StoreFileMetadata(std::unique_ptr<FileMetadata> metadata) = 0;
// Stores |tracker| and updates indexes.
// This overwrites existing FileTracker for the same |tracker_id|.
- virtual void StoreFileTracker(scoped_ptr<FileTracker> tracker) = 0;
+ virtual void StoreFileTracker(std::unique_ptr<FileTracker> tracker) = 0;
// Removes FileMetadata identified by |file_id| from indexes.
virtual void RemoveFileMetadata(const std::string& file_id) = 0;

Powered by Google App Engine
This is Rietveld 408576698