Commit 9441fc0b authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Run modernize-use-equals-default on chrome/browser/chromeos/extensions/file_manager

Steps I followed:

autoninja -C out/Default chrome

tools/clang/scripts/generate_compdb.py -p out/Default > compile_commands.json

cd out/Default

/usr/local/google/code/llvm/tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \
-p ../.. \
-clang-tidy-binary /usr/local/google/code/build/bin/clang-tidy \
-clang-apply-replacements-binary /usr/local/google/code/build/bin/clang-apply-replacements \
-checks=-*,modernize-use-equals-default \
-header-filter=chrome/browser/chromeos/extensions/file_manager/* \
-fix chrome/browser/chromeos/extensions/file_manager

git cl format

Bug: 841659
Change-Id: I1df81598c3d7b7dc18dc3326de410cc91f5de4b9
Reviewed-on: https://chromium-review.googlesource.com/1106577Reviewed-by: default avatarJoel Hockey <joelhockey@chromium.org>
Commit-Queue: Stuart Langley <slangley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568549}
parent 2477061e
......@@ -30,8 +30,7 @@ DeviceEventRouter::DeviceEventRouter(base::TimeDelta overriding_time_delta)
weak_factory_(this) {
}
DeviceEventRouter::~DeviceEventRouter() {
}
DeviceEventRouter::~DeviceEventRouter() = default;
void DeviceEventRouter::Startup() {
is_starting_up_ = true;
......
......@@ -32,7 +32,7 @@ class DeviceEventRouterImpl : public DeviceEventRouter {
DeviceEventRouterImpl()
: DeviceEventRouter(base::TimeDelta::FromSeconds(0)),
external_storage_disabled(false) {}
~DeviceEventRouterImpl() override {}
~DeviceEventRouterImpl() override = default;
// DeviceEventRouter overrides.
void OnDeviceEvent(file_manager_private::DeviceEventType type,
......
......@@ -38,8 +38,7 @@ EventRouterFactory::EventRouterFactory()
DependsOn(arc::ArcIntentHelperBridge::GetFactory());
}
EventRouterFactory::~EventRouterFactory() {
}
EventRouterFactory::~EventRouterFactory() = default;
KeyedService* EventRouterFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
......
......@@ -161,7 +161,7 @@ class FileSelectorImpl : public FileSelector,
DISALLOW_COPY_AND_ASSIGN(FileSelectorImpl);
};
FileSelectorImpl::FileSelectorImpl() {}
FileSelectorImpl::FileSelectorImpl() = default;
FileSelectorImpl::~FileSelectorImpl() {
if (dialog_.get())
......@@ -256,8 +256,8 @@ void FileSelectorImpl::SendResponse(bool success,
// FileSelectorFactory implementation.
class FileSelectorFactoryImpl : public FileSelectorFactory {
public:
FileSelectorFactoryImpl() {}
~FileSelectorFactoryImpl() override {}
FileSelectorFactoryImpl() = default;
~FileSelectorFactoryImpl() override = default;
// FileSelectorFactory implementation.
// Creates new FileSelectorImplementation for the function.
......@@ -287,7 +287,7 @@ FileBrowserHandlerInternalSelectFileFunction::
}
FileBrowserHandlerInternalSelectFileFunction::
~FileBrowserHandlerInternalSelectFileFunction() {}
~FileBrowserHandlerInternalSelectFileFunction() = default;
bool FileBrowserHandlerInternalSelectFileFunction::RunAsync() {
std::unique_ptr<SelectFile::Params> params(
......
......@@ -33,7 +33,7 @@ struct EntryDefinition;
// it should delete itself once it's done.
class FileSelector {
public:
virtual ~FileSelector() {}
virtual ~FileSelector() = default;
// Starts the file selection. It should prompt user to select a file path.
// Once the selection is made it should asynchronously call
......@@ -63,7 +63,7 @@ class FileSelector {
// create a FileSelector it can use to select a file path.
class FileSelectorFactory {
public:
virtual ~FileSelectorFactory() {}
virtual ~FileSelectorFactory() = default;
// Creates a FileSelector instance for the
// FileBrowserHandlerInternalSelectFileFunction.
......
......@@ -49,7 +49,7 @@ struct TestCase {
success(success),
selected_path(selected_path) {
}
~TestCase() {}
~TestCase() = default;
// Path that we expect to be suggested to the file selector.
base::FilePath suggested_name;
......@@ -84,7 +84,7 @@ class MockFileSelector : public file_manager::FileSelector {
success_(success),
selected_path_(selected_path) {
}
~MockFileSelector() override {}
~MockFileSelector() override = default;
// file_manager::FileSelector implementation.
// |browser| is not used.
......@@ -139,7 +139,7 @@ class MockFileSelectorFactory : public file_manager::FileSelectorFactory {
success_(test_case.success),
selected_path_(test_case.selected_path) {
}
~MockFileSelectorFactory() override {}
~MockFileSelectorFactory() override = default;
// file_manager::FileSelectorFactory implementation.
file_manager::FileSelector* CreateFileSelector() const override {
......
......@@ -22,7 +22,7 @@ const int kMd5DigestBufferSize = 512 * 1024; // 512 kB.
FileStreamMd5Digester::FileStreamMd5Digester()
: buffer_(new net::IOBuffer(kMd5DigestBufferSize)) {}
FileStreamMd5Digester::~FileStreamMd5Digester() {}
FileStreamMd5Digester::~FileStreamMd5Digester() = default;
void FileStreamMd5Digester::GetMd5Digest(
std::unique_ptr<storage::FileStreamReader> stream_reader,
......
......@@ -24,8 +24,7 @@ JobEventRouter::JobEventRouter(const base::TimeDelta& event_delay)
weak_factory_(this) {
}
JobEventRouter::~JobEventRouter() {
}
JobEventRouter::~JobEventRouter() = default;
void JobEventRouter::OnJobAdded(const drive::JobInfo& job_info) {
OnJobUpdated(job_info);
......
......@@ -22,8 +22,7 @@ LoggedAsyncExtensionFunction::LoggedAsyncExtensionFunction()
start_time_ = base::Time::Now();
}
LoggedAsyncExtensionFunction::~LoggedAsyncExtensionFunction() {
}
LoggedAsyncExtensionFunction::~LoggedAsyncExtensionFunction() = default;
void LoggedAsyncExtensionFunction::OnResponded() {
drive::EventLogger* logger = file_manager::util::GetLogger(GetProfile());
......
......@@ -26,7 +26,7 @@ class FileManagerPrivateCancelDialogFunction
FILEMANAGERPRIVATE_CANCELDIALOG)
protected:
~FileManagerPrivateCancelDialogFunction() override {}
~FileManagerPrivateCancelDialogFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -39,7 +39,7 @@ class FileManagerPrivateSelectFileFunction
FILEMANAGERPRIVATE_SELECTFILE)
protected:
~FileManagerPrivateSelectFileFunction() override {}
~FileManagerPrivateSelectFileFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -59,7 +59,7 @@ class FileManagerPrivateSelectFilesFunction
FILEMANAGERPRIVATE_SELECTFILES)
protected:
~FileManagerPrivateSelectFilesFunction() override {}
~FileManagerPrivateSelectFilesFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......
......@@ -265,7 +265,7 @@ class SingleEntryPropertiesGetterForDrive {
// The instance will be destroyed by itself.
}
virtual ~SingleEntryPropertiesGetterForDrive() {}
virtual ~SingleEntryPropertiesGetterForDrive() = default;
private:
SingleEntryPropertiesGetterForDrive(
......@@ -478,7 +478,7 @@ class SingleEntryPropertiesGetterForFileSystemProvider {
// The instance will be destroyed by itself.
}
virtual ~SingleEntryPropertiesGetterForFileSystemProvider() {}
virtual ~SingleEntryPropertiesGetterForFileSystemProvider() = default;
private:
SingleEntryPropertiesGetterForFileSystemProvider(
......@@ -780,8 +780,7 @@ FileManagerPrivateInternalGetEntryPropertiesFunction::
}
FileManagerPrivateInternalGetEntryPropertiesFunction::
~FileManagerPrivateInternalGetEntryPropertiesFunction() {
}
~FileManagerPrivateInternalGetEntryPropertiesFunction() = default;
bool FileManagerPrivateInternalGetEntryPropertiesFunction::RunAsync() {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
......@@ -1407,10 +1406,10 @@ void FileManagerPrivateInternalRequestDriveShareFunction::OnAddPermission(
}
FileManagerPrivateInternalGetDownloadUrlFunction::
FileManagerPrivateInternalGetDownloadUrlFunction() {}
FileManagerPrivateInternalGetDownloadUrlFunction() = default;
FileManagerPrivateInternalGetDownloadUrlFunction::
~FileManagerPrivateInternalGetDownloadUrlFunction() {}
~FileManagerPrivateInternalGetDownloadUrlFunction() = default;
bool FileManagerPrivateInternalGetDownloadUrlFunction::RunAsync() {
using extensions::api::file_manager_private_internal::GetShareUrl::Params;
......
......@@ -45,7 +45,7 @@ class FileManagerPrivateInternalEnsureFileDownloadedFunction
FILEMANAGERPRIVATE_ENSUREFILEDOWNLOADED)
protected:
~FileManagerPrivateInternalEnsureFileDownloadedFunction() override {}
~FileManagerPrivateInternalEnsureFileDownloadedFunction() override = default;
// AsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -93,7 +93,7 @@ class FileManagerPrivateInternalPinDriveFileFunction
FILEMANAGERPRIVATEINTERNAL_PINDRIVEFILE)
protected:
~FileManagerPrivateInternalPinDriveFileFunction() override {}
~FileManagerPrivateInternalPinDriveFileFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -115,7 +115,7 @@ class FileManagerPrivateInternalCancelFileTransfersFunction
FILEMANAGERPRIVATEINTERNAL_CANCELFILETRANSFERS)
protected:
~FileManagerPrivateInternalCancelFileTransfersFunction() override {}
~FileManagerPrivateInternalCancelFileTransfersFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -129,7 +129,7 @@ class FileManagerPrivateCancelAllFileTransfersFunction
FILEMANAGERPRIVATE_CANCELALLFILETRANSFERS)
protected:
~FileManagerPrivateCancelAllFileTransfersFunction() override {}
~FileManagerPrivateCancelAllFileTransfersFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -144,7 +144,7 @@ class FileManagerPrivateSearchDriveFunction
FILEMANAGERPRIVATE_SEARCHDRIVE)
protected:
~FileManagerPrivateSearchDriveFunction() override {}
~FileManagerPrivateSearchDriveFunction() override = default;
bool RunAsync() override;
......@@ -173,7 +173,7 @@ class FileManagerPrivateSearchDriveMetadataFunction
FILEMANAGERPRIVATE_SEARCHDRIVEMETADATA)
protected:
~FileManagerPrivateSearchDriveMetadataFunction() override {}
~FileManagerPrivateSearchDriveMetadataFunction() override = default;
bool RunAsync() override;
......@@ -201,7 +201,7 @@ class FileManagerPrivateGetDriveConnectionStateFunction
FILEMANAGERPRIVATE_GETDRIVECONNECTIONSTATE);
protected:
~FileManagerPrivateGetDriveConnectionStateFunction() override {}
~FileManagerPrivateGetDriveConnectionStateFunction() override = default;
ResponseAction Run() override;
};
......@@ -214,7 +214,7 @@ class FileManagerPrivateRequestAccessTokenFunction
FILEMANAGERPRIVATE_REQUESTACCESSTOKEN)
protected:
~FileManagerPrivateRequestAccessTokenFunction() override {}
~FileManagerPrivateRequestAccessTokenFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -232,7 +232,7 @@ class FileManagerPrivateInternalGetShareUrlFunction
FILEMANAGERPRIVATEINTERNAL_GETSHAREURL)
protected:
~FileManagerPrivateInternalGetShareUrlFunction() override {}
~FileManagerPrivateInternalGetShareUrlFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -250,7 +250,7 @@ class FileManagerPrivateInternalRequestDriveShareFunction
FILEMANAGERPRIVATEINTERNAL_REQUESTDRIVESHARE);
protected:
~FileManagerPrivateInternalRequestDriveShareFunction() override {}
~FileManagerPrivateInternalRequestDriveShareFunction() override = default;
bool RunAsync() override;
private:
......
......@@ -860,8 +860,7 @@ FileManagerPrivateInternalComputeChecksumFunction::
}
FileManagerPrivateInternalComputeChecksumFunction::
~FileManagerPrivateInternalComputeChecksumFunction() {
}
~FileManagerPrivateInternalComputeChecksumFunction() = default;
bool FileManagerPrivateInternalComputeChecksumFunction::RunAsync() {
using extensions::api::file_manager_private_internal::ComputeChecksum::Params;
......
......@@ -58,7 +58,7 @@ class FileManagerPrivateEnableExternalFileSchemeFunction
FILEMANAGERPRIVATE_ENABLEEXTERNALFILESCHEME);
protected:
~FileManagerPrivateEnableExternalFileSchemeFunction() override {}
~FileManagerPrivateEnableExternalFileSchemeFunction() override = default;
private:
ExtensionFunction::ResponseAction Run() override;
......@@ -74,7 +74,7 @@ class FileManagerPrivateGrantAccessFunction : public UIThreadExtensionFunction {
FILEMANAGERPRIVATE_GRANTACCESS)
protected:
~FileManagerPrivateGrantAccessFunction() override {}
~FileManagerPrivateGrantAccessFunction() override = default;
private:
ExtensionFunction::ResponseAction Run() override;
......@@ -95,7 +95,7 @@ class FileWatchFunctionBase : public LoggedAsyncExtensionFunction {
void Respond(bool success);
protected:
~FileWatchFunctionBase() override {}
~FileWatchFunctionBase() override = default;
// Performs a file watch operation (ex. adds or removes a file watch) on
// the IO thread with storage::WatcherManager.
......@@ -131,7 +131,7 @@ class FileManagerPrivateInternalAddFileWatchFunction
FILEMANAGERPRIVATEINTERNAL_ADDFILEWATCH)
protected:
~FileManagerPrivateInternalAddFileWatchFunction() override {}
~FileManagerPrivateInternalAddFileWatchFunction() override = default;
// FileWatchFunctionBase override.
void PerformFileWatchOperationOnIOThread(
......@@ -154,7 +154,7 @@ class FileManagerPrivateInternalRemoveFileWatchFunction
FILEMANAGERPRIVATEINTERNAL_REMOVEFILEWATCH)
protected:
~FileManagerPrivateInternalRemoveFileWatchFunction() override {}
~FileManagerPrivateInternalRemoveFileWatchFunction() override = default;
// FileWatchFunctionBase override.
void PerformFileWatchOperationOnIOThread(
......@@ -175,7 +175,7 @@ class FileManagerPrivateGetSizeStatsFunction
FILEMANAGERPRIVATE_GETSIZESTATS)
protected:
~FileManagerPrivateGetSizeStatsFunction() override {}
~FileManagerPrivateGetSizeStatsFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -201,7 +201,8 @@ class FileManagerPrivateInternalValidatePathNameLengthFunction
FILEMANAGERPRIVATEINTERNAL_VALIDATEPATHNAMELENGTH)
protected:
~FileManagerPrivateInternalValidatePathNameLengthFunction() override {}
~FileManagerPrivateInternalValidatePathNameLengthFunction() override =
default;
void OnFilePathLimitRetrieved(size_t current_length, size_t max_length);
......@@ -218,7 +219,7 @@ class FileManagerPrivateFormatVolumeFunction
FILEMANAGERPRIVATE_FORMATVOLUME)
protected:
~FileManagerPrivateFormatVolumeFunction() override {}
~FileManagerPrivateFormatVolumeFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -233,7 +234,7 @@ class FileManagerPrivateRenameVolumeFunction
FILEMANAGERPRIVATE_RENAMEVOLUME)
protected:
~FileManagerPrivateRenameVolumeFunction() override {}
~FileManagerPrivateRenameVolumeFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -247,7 +248,7 @@ class FileManagerPrivateInternalStartCopyFunction
FILEMANAGERPRIVATEINTERNAL_STARTCOPY)
protected:
~FileManagerPrivateInternalStartCopyFunction() override {}
~FileManagerPrivateInternalStartCopyFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -275,7 +276,7 @@ class FileManagerPrivateCancelCopyFunction
FILEMANAGERPRIVATE_CANCELCOPY)
protected:
~FileManagerPrivateCancelCopyFunction() override {}
~FileManagerPrivateCancelCopyFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -291,7 +292,8 @@ class FileManagerPrivateInternalResolveIsolatedEntriesFunction
FILEMANAGERPRIVATE_RESOLVEISOLATEDENTRIES)
protected:
~FileManagerPrivateInternalResolveIsolatedEntriesFunction() override {}
~FileManagerPrivateInternalResolveIsolatedEntriesFunction() override =
default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -330,7 +332,7 @@ class FileManagerPrivateSearchFilesByHashesFunction
FILEMANAGERPRIVATE_SEARCHFILESBYHASHES)
protected:
~FileManagerPrivateSearchFilesByHashesFunction() override {}
~FileManagerPrivateSearchFilesByHashesFunction() override = default;
private:
// ChromeAsyncExtensionFunction overrides.
......@@ -346,11 +348,11 @@ class FileManagerPrivateSearchFilesByHashesFunction
class FileManagerPrivateIsUMAEnabledFunction
: public UIThreadExtensionFunction {
public:
FileManagerPrivateIsUMAEnabledFunction() {}
FileManagerPrivateIsUMAEnabledFunction() = default;
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.isUMAEnabled",
FILEMANAGERPRIVATE_ISUMAENABLED)
protected:
~FileManagerPrivateIsUMAEnabledFunction() override {}
~FileManagerPrivateIsUMAEnabledFunction() override = default;
private:
ExtensionFunction::ResponseAction Run() override;
......@@ -365,7 +367,7 @@ class FileManagerPrivateInternalSetEntryTagFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.setEntryTag",
FILEMANAGERPRIVATEINTERNAL_SETENTRYTAG)
protected:
~FileManagerPrivateInternalSetEntryTagFunction() override {}
~FileManagerPrivateInternalSetEntryTagFunction() override = default;
private:
const ChromeExtensionFunctionDetails chrome_details_;
......@@ -385,7 +387,7 @@ class FileManagerPrivateInternalGetDirectorySizeFunction
FILEMANAGERPRIVATEINTERNAL_GETDIRECTORYSIZE)
protected:
~FileManagerPrivateInternalGetDirectorySizeFunction() override {}
~FileManagerPrivateInternalGetDirectorySizeFunction() override = default;
void OnDirectorySizeRetrieved(int64_t size);
......
......@@ -252,10 +252,10 @@ FileManagerPrivateSetPreferencesFunction::Run() {
}
FileManagerPrivateInternalZipSelectionFunction::
FileManagerPrivateInternalZipSelectionFunction() {}
FileManagerPrivateInternalZipSelectionFunction() = default;
FileManagerPrivateInternalZipSelectionFunction::
~FileManagerPrivateInternalZipSelectionFunction() {}
~FileManagerPrivateInternalZipSelectionFunction() = default;
bool FileManagerPrivateInternalZipSelectionFunction::RunAsync() {
using extensions::api::file_manager_private_internal::ZipSelection::Params;
......@@ -344,12 +344,10 @@ ExtensionFunction::ResponseAction FileManagerPrivateZoomFunction::Run() {
}
FileManagerPrivateRequestWebStoreAccessTokenFunction::
FileManagerPrivateRequestWebStoreAccessTokenFunction() {
}
FileManagerPrivateRequestWebStoreAccessTokenFunction() = default;
FileManagerPrivateRequestWebStoreAccessTokenFunction::
~FileManagerPrivateRequestWebStoreAccessTokenFunction() {
}
~FileManagerPrivateRequestWebStoreAccessTokenFunction() = default;
bool FileManagerPrivateRequestWebStoreAccessTokenFunction::RunAsync() {
std::vector<std::string> scopes;
......@@ -478,12 +476,10 @@ FileManagerPrivateOpenSettingsSubpageFunction::Run() {
}
FileManagerPrivateInternalGetMimeTypeFunction::
FileManagerPrivateInternalGetMimeTypeFunction() {
}
FileManagerPrivateInternalGetMimeTypeFunction() = default;
FileManagerPrivateInternalGetMimeTypeFunction::
~FileManagerPrivateInternalGetMimeTypeFunction() {
}
~FileManagerPrivateInternalGetMimeTypeFunction() = default;
bool FileManagerPrivateInternalGetMimeTypeFunction::RunAsync() {
using extensions::api::file_manager_private_internal::GetMimeType::Params;
......
......@@ -53,7 +53,7 @@ class FileManagerPrivateLogoutUserForReauthenticationFunction
FILEMANAGERPRIVATE_LOGOUTUSERFORREAUTHENTICATION)
protected:
~FileManagerPrivateLogoutUserForReauthenticationFunction() override {}
~FileManagerPrivateLogoutUserForReauthenticationFunction() override = default;
// ExtensionFunction:
ResponseAction Run() override;
......@@ -68,7 +68,7 @@ class FileManagerPrivateGetPreferencesFunction
FILEMANAGERPRIVATE_GETPREFERENCES)
protected:
~FileManagerPrivateGetPreferencesFunction() override {}
~FileManagerPrivateGetPreferencesFunction() override = default;
ResponseAction Run() override;
};
......@@ -82,7 +82,7 @@ class FileManagerPrivateSetPreferencesFunction
FILEMANAGERPRIVATE_SETPREFERENCES)
protected:
~FileManagerPrivateSetPreferencesFunction() override {}
~FileManagerPrivateSetPreferencesFunction() override = default;
ResponseAction Run() override;
};
......@@ -118,7 +118,7 @@ class FileManagerPrivateZoomFunction : public UIThreadExtensionFunction {
FILEMANAGERPRIVATE_ZOOM);
protected:
~FileManagerPrivateZoomFunction() override {}
~FileManagerPrivateZoomFunction() override = default;
// ExtensionFunction:
ResponseAction Run() override;
......@@ -151,7 +151,7 @@ class FileManagerPrivateGetProfilesFunction : public UIThreadExtensionFunction {
FILEMANAGERPRIVATE_GETPROFILES);
protected:
~FileManagerPrivateGetProfilesFunction() override {}
~FileManagerPrivateGetProfilesFunction() override = default;
// ExtensionFunction:
ResponseAction Run() override;
......@@ -165,7 +165,7 @@ class FileManagerPrivateOpenInspectorFunction
FILEMANAGERPRIVATE_OPENINSPECTOR);
protected:
~FileManagerPrivateOpenInspectorFunction() override {}
~FileManagerPrivateOpenInspectorFunction() override = default;
ResponseAction Run() override;
};
......@@ -178,7 +178,7 @@ class FileManagerPrivateOpenSettingsSubpageFunction
FILEMANAGERPRIVATE_OPENSETTINGSSUBPAGE);
protected:
~FileManagerPrivateOpenSettingsSubpageFunction() override {}
~FileManagerPrivateOpenSettingsSubpageFunction() override = default;
ResponseAction Run() override;
};
......@@ -205,11 +205,11 @@ class FileManagerPrivateInternalGetMimeTypeFunction
class FileManagerPrivateIsPiexLoaderEnabledFunction
: public UIThreadExtensionFunction {
public:
FileManagerPrivateIsPiexLoaderEnabledFunction() {}
FileManagerPrivateIsPiexLoaderEnabledFunction() = default;
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.isPiexLoaderEnabled",
FILEMANAGERPRIVATE_ISPIEXLOADERENABLED)
protected:
~FileManagerPrivateIsPiexLoaderEnabledFunction() override {}
~FileManagerPrivateIsPiexLoaderEnabledFunction() override = default;
private:
ResponseAction Run() override;
......@@ -224,7 +224,7 @@ class FileManagerPrivateGetProvidersFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProviders",
FILEMANAGERPRIVATE_GETPROVIDERS)
protected:
~FileManagerPrivateGetProvidersFunction() override {}
~FileManagerPrivateGetProvidersFunction() override = default;
private:
ResponseAction Run() override;
......@@ -240,7 +240,7 @@ class FileManagerPrivateAddProvidedFileSystemFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.addProvidedFileSystem",
FILEMANAGERPRIVATE_ADDPROVIDEDFILESYSTEM)
protected:
~FileManagerPrivateAddProvidedFileSystemFunction() override {}
~FileManagerPrivateAddProvidedFileSystemFunction() override = default;
private:
ResponseAction Run() override;
......@@ -256,7 +256,7 @@ class FileManagerPrivateConfigureVolumeFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.configureVolume",
FILEMANAGERPRIVATE_CONFIGUREVOLUME)
protected:
~FileManagerPrivateConfigureVolumeFunction() override {}
~FileManagerPrivateConfigureVolumeFunction() override = default;
private:
ResponseAction Run() override;
......@@ -275,7 +275,7 @@ class FileManagerPrivateIsCrostiniEnabledFunction
FILEMANAGERPRIVATE_ISCROSTINIENABLED)
protected:
~FileManagerPrivateIsCrostiniEnabledFunction() override {}
~FileManagerPrivateIsCrostiniEnabledFunction() override = default;
ResponseAction Run() override;
};
......@@ -320,7 +320,7 @@ class FileManagerPrivateInternalGetCustomActionsFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.getCustomActions",
FILEMANAGERPRIVATEINTERNAL_GETCUSTOMACTIONS)
protected:
~FileManagerPrivateInternalGetCustomActionsFunction() override {}
~FileManagerPrivateInternalGetCustomActionsFunction() override = default;
private:
ResponseAction Run() override;
......@@ -339,7 +339,7 @@ class FileManagerPrivateInternalExecuteCustomActionFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.executeCustomAction",
FILEMANAGERPRIVATEINTERNAL_EXECUTECUSTOMACTION)
protected:
~FileManagerPrivateInternalExecuteCustomActionFunction() override {}
~FileManagerPrivateInternalExecuteCustomActionFunction() override = default;
private:
ResponseAction Run() override;
......@@ -358,7 +358,7 @@ class FileManagerPrivateInternalGetRecentFilesFunction
DECLARE_EXTENSION_FUNCTION("fileManagerPrivateInternal.getRecentFiles",
FILEMANAGERPRIVATE_GETRECENTFILES)
protected:
~FileManagerPrivateInternalGetRecentFilesFunction() override {}
~FileManagerPrivateInternalGetRecentFilesFunction() override = default;
private:
ResponseAction Run() override;
......
......@@ -24,7 +24,7 @@ class FileManagerPrivateAddMountFunction : public LoggedAsyncExtensionFunction {
FILEMANAGERPRIVATE_ADDMOUNT)
protected:
~FileManagerPrivateAddMountFunction() override {}
~FileManagerPrivateAddMountFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -59,7 +59,7 @@ class FileManagerPrivateRemoveMountFunction
FILEMANAGERPRIVATE_REMOVEMOUNT)
protected:
~FileManagerPrivateRemoveMountFunction() override {}
~FileManagerPrivateRemoveMountFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -74,7 +74,7 @@ class FileManagerPrivateMarkCacheAsMountedFunction
FILEMANAGERPRIVATE_MARKCACHEASMOUNTED)
protected:
~FileManagerPrivateMarkCacheAsMountedFunction() override {}
~FileManagerPrivateMarkCacheAsMountedFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -103,7 +103,7 @@ class FileManagerPrivateGetVolumeMetadataListFunction
FILEMANAGERPRIVATE_GETVOLUMEMETADATALIST)
protected:
~FileManagerPrivateGetVolumeMetadataListFunction() override {}
~FileManagerPrivateGetVolumeMetadataListFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......
......@@ -408,11 +408,11 @@ void AddStringsForZipArchiver(base::DictionaryValue* dict) {
namespace extensions {
FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() {
}
FileManagerPrivateGetStringsFunction::FileManagerPrivateGetStringsFunction() =
default;
FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() {
}
FileManagerPrivateGetStringsFunction::~FileManagerPrivateGetStringsFunction() =
default;
ExtensionFunction::ResponseAction FileManagerPrivateGetStringsFunction::Run() {
std::unique_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
......
......@@ -123,10 +123,10 @@ void FileManagerPrivateInternalExecuteTaskFunction::OnTaskExecuted(
}
FileManagerPrivateInternalGetFileTasksFunction::
FileManagerPrivateInternalGetFileTasksFunction() {}
FileManagerPrivateInternalGetFileTasksFunction() = default;
FileManagerPrivateInternalGetFileTasksFunction::
~FileManagerPrivateInternalGetFileTasksFunction() {}
~FileManagerPrivateInternalGetFileTasksFunction() = default;
bool FileManagerPrivateInternalGetFileTasksFunction::RunAsync() {
using extensions::api::file_manager_private_internal::GetFileTasks::Params;
......
......@@ -34,7 +34,7 @@ class FileManagerPrivateInternalExecuteTaskFunction
FILEMANAGERPRIVATEINTERNAL_EXECUTETASK)
protected:
~FileManagerPrivateInternalExecuteTaskFunction() override {}
~FileManagerPrivateInternalExecuteTaskFunction() override = default;
// ChromeAsyncExtensionFunction overrides.
bool RunAsync() override;
......@@ -87,7 +87,7 @@ class FileManagerPrivateInternalSetDefaultTaskFunction
FILEMANAGERPRIVATEINTERNAL_SETDEFAULTTASK)
protected:
~FileManagerPrivateInternalSetDefaultTaskFunction() override {}
~FileManagerPrivateInternalSetDefaultTaskFunction() override = default;
// ExtensionFunction:
ResponseAction Run() override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment