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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc

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/extensions/file_manager/private_api_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
index eb81beca200e87487104006cb9305b5f936586c8..b7d73034f2824e20a780c947899430c572b8ec67 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
@@ -53,7 +53,7 @@ void OnDriveGetFile(const base::FilePath& path,
const LocalPathCallback& callback,
drive::FileError error,
const base::FilePath& local_file_path,
- scoped_ptr<drive::ResourceEntry> entry) {
+ std::unique_ptr<drive::ResourceEntry> entry) {
if (error != drive::FILE_ERROR_OK)
DLOG(ERROR) << "Failed to get " << path.value() << " with: " << error;
callback.Run(local_file_path);
@@ -103,13 +103,15 @@ void GetFileNativeLocalPathForSaving(Profile* profile,
}
// Forward declarations of helper functions for GetSelectedFileInfo().
-void ContinueGetSelectedFileInfo(Profile* profile,
- scoped_ptr<GetSelectedFileInfoParams> params,
- const base::FilePath& local_file_path);
+void ContinueGetSelectedFileInfo(
+ Profile* profile,
+ std::unique_ptr<GetSelectedFileInfoParams> params,
+ const base::FilePath& local_file_path);
// Part of GetSelectedFileInfo().
-void GetSelectedFileInfoInternal(Profile* profile,
- scoped_ptr<GetSelectedFileInfoParams> params) {
+void GetSelectedFileInfoInternal(
+ Profile* profile,
+ std::unique_ptr<GetSelectedFileInfoParams> params) {
DCHECK(profile);
for (size_t i = params->selected_files.size();
@@ -152,9 +154,10 @@ void GetSelectedFileInfoInternal(Profile* profile,
}
// Part of GetSelectedFileInfo().
-void ContinueGetSelectedFileInfo(Profile* profile,
- scoped_ptr<GetSelectedFileInfoParams> params,
- const base::FilePath& local_path) {
+void ContinueGetSelectedFileInfo(
+ Profile* profile,
+ std::unique_ptr<GetSelectedFileInfoParams> params,
+ const base::FilePath& local_path) {
if (local_path.empty()) {
params->callback.Run(std::vector<ui::SelectedFileInfo>());
return;
@@ -330,7 +333,8 @@ void GetSelectedFileInfo(content::RenderFrameHost* render_frame_host,
DCHECK(render_frame_host);
DCHECK(profile);
- scoped_ptr<GetSelectedFileInfoParams> params(new GetSelectedFileInfoParams);
+ std::unique_ptr<GetSelectedFileInfoParams> params(
+ new GetSelectedFileInfoParams);
params->local_path_option = local_path_option;
params->callback = callback;

Powered by Google App Engine
This is Rietveld 408576698