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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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/extensions/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index 2591cd970e8265a7e56e0ec45585cead58eca511..07de8dd8ab49220ce9338f0624c21719ff615ed7 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -629,8 +629,7 @@ ExtensionFunction::ResponseAction FileSystemIsWritableEntryFunction::Run() {
bool is_writable = policy->CanReadWriteFileSystem(renderer_id,
filesystem_id);
- return RespondNow(
- OneArgument(base::MakeUnique<base::FundamentalValue>(is_writable)));
+ return RespondNow(OneArgument(base::MakeUnique<base::Value>(is_writable)));
}
// Handles showing a dialog to the user to ask for the filename for a file to
@@ -1195,7 +1194,7 @@ void FileSystemRetainEntryFunction::RetainFileEntry(
ExtensionFunction::ResponseAction FileSystemIsRestorableFunction::Run() {
std::string entry_id;
EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &entry_id));
- return RespondNow(OneArgument(base::MakeUnique<base::FundamentalValue>(
+ return RespondNow(OneArgument(base::MakeUnique<base::Value>(
SavedFilesService::Get(Profile::FromBrowserContext(browser_context()))
->IsRegistered(extension_->id(), entry_id))));
}

Powered by Google App Engine
This is Rietveld 408576698