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

Unified Diff: chrome/browser/sync_file_system/local/canned_syncable_file_system.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/local/canned_syncable_file_system.h
diff --git a/chrome/browser/sync_file_system/local/canned_syncable_file_system.h b/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
index 4d42e5061dde476e89385b609165503446619363..2f14160d1322d34ea3f13e17e8a80a05f2a15983 100644
--- a/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
+++ b/chrome/browser/sync_file_system/local/canned_syncable_file_system.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
@@ -14,7 +15,6 @@
#include "base/files/file.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/observer_list_threadsafe.h"
#include "chrome/browser/sync_file_system/local/local_file_sync_status.h"
#include "chrome/browser/sync_file_system/sync_status_code.h"
@@ -145,7 +145,7 @@ class CannedSyncableFileSystem
// Returns the # of bytes written (>=0) or an error code (<0).
int64_t Write(net::URLRequestContext* url_request_context,
const storage::FileSystemURL& url,
- scoped_ptr<storage::BlobDataHandle> blob_data_handle);
+ std::unique_ptr<storage::BlobDataHandle> blob_data_handle);
int64_t WriteString(const storage::FileSystemURL& url,
const std::string& data);
@@ -207,7 +207,7 @@ class CannedSyncableFileSystem
const StatusCallback& callback);
void DoWrite(net::URLRequestContext* url_request_context,
const storage::FileSystemURL& url,
- scoped_ptr<storage::BlobDataHandle> blob_data_handle,
+ std::unique_ptr<storage::BlobDataHandle> blob_data_handle,
const WriteCallback& callback);
void DoWriteString(const storage::FileSystemURL& url,
const std::string& data,

Powered by Google App Engine
This is Rietveld 408576698