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

Unified Diff: extensions/browser/api/usb/usb_api.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
« no previous file with comments | « extensions/browser/api/storage/storage_api.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/usb/usb_api.cc
diff --git a/extensions/browser/api/usb/usb_api.cc b/extensions/browser/api/usb/usb_api.cc
index 389d3ce3b76481840490a1e3335ba992d98372e2..d57cdc20262a148d1b1d794b7dec72628f3e378a 100644
--- a/extensions/browser/api/usb/usb_api.cc
+++ b/extensions/browser/api/usb/usb_api.cc
@@ -737,8 +737,7 @@ ExtensionFunction::ResponseAction UsbRequestAccessFunction::Run() {
std::unique_ptr<extensions::api::usb::RequestAccess::Params> parameters =
RequestAccess::Params::Create(*args_);
EXTENSION_FUNCTION_VALIDATE(parameters.get());
- return RespondNow(
- OneArgument(base::MakeUnique<base::FundamentalValue>(true)));
+ return RespondNow(OneArgument(base::MakeUnique<base::Value>(true)));
}
UsbOpenDeviceFunction::UsbOpenDeviceFunction() {
@@ -1284,7 +1283,7 @@ ExtensionFunction::ResponseAction UsbResetDeviceFunction::Run() {
void UsbResetDeviceFunction::OnComplete(bool success) {
if (success) {
- Respond(OneArgument(base::MakeUnique<base::FundamentalValue>(true)));
+ Respond(OneArgument(base::MakeUnique<base::Value>(true)));
} else {
scoped_refptr<UsbDeviceHandle> device_handle =
GetDeviceHandle(parameters_->handle);
« no previous file with comments | « extensions/browser/api/storage/storage_api.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698