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

Unified Diff: chrome/browser/chromeos/drive/file_task_executor.h

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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/chromeos/drive/file_task_executor.h
diff --git a/chrome/browser/chromeos/drive/file_task_executor.h b/chrome/browser/chromeos/drive/file_task_executor.h
index 45e41e68169171b3be8af770154c75a37858ba0e..1868b7cb1db46b905577afa465f25ca269e9aa60 100644
--- a/chrome/browser/chromeos/drive/file_task_executor.h
+++ b/chrome/browser/chromeos/drive/file_task_executor.h
@@ -42,7 +42,7 @@ class FileTaskExecutor {
FileTaskExecutor(Profile* profile, const std::string& app_id);
// Creates FileTaskExecutor with a specific delegate.
- FileTaskExecutor(scoped_ptr<FileTaskExecutorDelegate> delegate,
+ FileTaskExecutor(std::unique_ptr<FileTaskExecutorDelegate> delegate,
const std::string& app_id);
// Executes file tasks, runs |done| and deletes |this|.
@@ -52,7 +52,8 @@ class FileTaskExecutor {
private:
~FileTaskExecutor();
- void OnFileEntryFetched(FileError error, scoped_ptr<ResourceEntry> entry);
+ void OnFileEntryFetched(FileError error,
+ std::unique_ptr<ResourceEntry> entry);
void OnAppAuthorized(const std::string& resource_id,
google_apis::DriveApiErrorCode error,
const GURL& open_link);
@@ -60,7 +61,7 @@ class FileTaskExecutor {
// Calls |done_| with |success| status and deletes |this|.
void Done(bool success);
- scoped_ptr<FileTaskExecutorDelegate> delegate_;
+ std::unique_ptr<FileTaskExecutorDelegate> delegate_;
std::string app_id_;
int current_index_;
file_manager::file_tasks::FileTaskFinishedCallback done_;
« no previous file with comments | « chrome/browser/chromeos/drive/file_system_util.cc ('k') | chrome/browser/chromeos/drive/file_task_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698