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

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

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years, 1 month 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_file_system.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
index a75a885165ab4eed3a944822ea72b697f4c899dc..ca503066403631b981df127f7818117009c3d22f 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc
@@ -309,7 +309,7 @@ ExtensionFunction::ResponseAction FileManagerPrivateGrantAccessFunction::Run() {
void FileWatchFunctionBase::Respond(bool success) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- SetResult(base::MakeUnique<base::FundamentalValue>(success));
+ SetResult(base::MakeUnique<base::Value>(success));
SendResponse(success);
}
@@ -515,7 +515,7 @@ bool FileManagerPrivateInternalValidatePathNameLengthFunction::RunAsync() {
// No explicit limit on the length of Drive file names.
if (file_system_url.type() == storage::kFileSystemTypeDrive) {
- SetResult(base::MakeUnique<base::FundamentalValue>(true));
+ SetResult(base::MakeUnique<base::Value>(true));
SendResponse(true);
return true;
}
@@ -532,8 +532,7 @@ bool FileManagerPrivateInternalValidatePathNameLengthFunction::RunAsync() {
void FileManagerPrivateInternalValidatePathNameLengthFunction::
OnFilePathLimitRetrieved(size_t current_length, size_t max_length) {
- SetResult(
- base::MakeUnique<base::FundamentalValue>(current_length <= max_length));
+ SetResult(base::MakeUnique<base::Value>(current_length <= max_length));
SendResponse(true);
}
@@ -693,7 +692,7 @@ void FileManagerPrivateInternalStartCopyFunction::RunAfterStartCopy(
int operation_id) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
- SetResult(base::MakeUnique<base::FundamentalValue>(operation_id));
+ SetResult(base::MakeUnique<base::Value>(operation_id));
SendResponse(true);
}
@@ -901,7 +900,7 @@ void FileManagerPrivateSearchFilesByHashesFunction::OnSearchByHashes(
ExtensionFunction::ResponseAction
FileManagerPrivateIsUMAEnabledFunction::Run() {
- return RespondNow(OneArgument(base::MakeUnique<base::FundamentalValue>(
+ return RespondNow(OneArgument(base::MakeUnique<base::Value>(
ChromeMetricsServiceAccessor::IsMetricsAndCrashReportingEnabled())));
}
@@ -998,8 +997,7 @@ bool FileManagerPrivateInternalGetDirectorySizeFunction::RunAsync() {
void FileManagerPrivateInternalGetDirectorySizeFunction::
OnDirectorySizeRetrieved(int64_t size) {
- SetResult(
- base::MakeUnique<base::FundamentalValue>(static_cast<double>(size)));
+ SetResult(base::MakeUnique<base::Value>(static_cast<double>(size)));
SendResponse(true);
}

Powered by Google App Engine
This is Rietveld 408576698