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

Unified Diff: extensions/browser/api/usb/usb_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
« no previous file with comments | « extensions/browser/api/system_display/system_display_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 e8f0a8a2885c49269a24848c607db3ba701f3bb4..9e3bb6bfd1a6db0e93083246a4fd28f00d8293db 100644
--- a/extensions/browser/api/usb/usb_api.cc
+++ b/extensions/browser/api/usb/usb_api.cc
@@ -731,8 +731,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() {
@@ -1278,7 +1277,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/system_display/system_display_api.cc ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698