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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.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_misc.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
index c596928cad04332302c86d462fe353eebd52502a..c50ffb2df4f27f83495ce0ec8a96ed767fbcc186 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.cc
@@ -195,7 +195,7 @@ bool FileManagerPrivateGetPreferencesFunction::RunSync() {
bool FileManagerPrivateSetPreferencesFunction::RunSync() {
using extensions::api::file_manager_private::SetPreferences::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
PrefService* const service = GetProfile()->GetPrefs();
@@ -222,7 +222,7 @@ FileManagerPrivateInternalZipSelectionFunction::
bool FileManagerPrivateInternalZipSelectionFunction::RunAsync() {
using extensions::api::file_manager_private_internal::ZipSelection::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
// First param is the parent directory URL.
@@ -283,7 +283,7 @@ void FileManagerPrivateInternalZipSelectionFunction::OnZipDone(bool success) {
bool FileManagerPrivateZoomFunction::RunSync() {
using extensions::api::file_manager_private::Zoom::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
content::PageZoom zoom_type;
@@ -395,7 +395,7 @@ bool FileManagerPrivateGetProfilesFunction::RunSync() {
bool FileManagerPrivateOpenInspectorFunction::RunSync() {
using extensions::api::file_manager_private::OpenInspector::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
switch (params->type) {
@@ -438,7 +438,7 @@ FileManagerPrivateInternalGetMimeTypeFunction::
bool FileManagerPrivateInternalGetMimeTypeFunction::RunAsync() {
using extensions::api::file_manager_private_internal::GetMimeType::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
// Convert file url to local path.
@@ -524,7 +524,7 @@ FileManagerPrivateAddProvidedFileSystemFunction::
ExtensionFunction::ResponseAction
FileManagerPrivateAddProvidedFileSystemFunction::Run() {
using extensions::api::file_manager_private::AddProvidedFileSystem::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
using chromeos::file_system_provider::Service;
@@ -545,7 +545,7 @@ FileManagerPrivateConfigureVolumeFunction::
ExtensionFunction::ResponseAction
FileManagerPrivateConfigureVolumeFunction::Run() {
using extensions::api::file_manager_private::ConfigureVolume::Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
using file_manager::VolumeManager;
@@ -599,7 +599,7 @@ ExtensionFunction::ResponseAction
FileManagerPrivateInternalGetCustomActionsFunction::Run() {
using extensions::api::file_manager_private_internal::GetCustomActions::
Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
const scoped_refptr<storage::FileSystemContext> file_system_context =
@@ -655,7 +655,7 @@ ExtensionFunction::ResponseAction
FileManagerPrivateInternalExecuteCustomActionFunction::Run() {
using extensions::api::file_manager_private_internal::ExecuteCustomAction::
Params;
- const scoped_ptr<Params> params(Params::Create(*args_));
+ const std::unique_ptr<Params> params(Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params);
const scoped_refptr<storage::FileSystemContext> file_system_context =

Powered by Google App Engine
This is Rietveld 408576698