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

Unified Diff: device/usb/usb_device_filter.cc

Issue 1123093003: Add a manifest property declaring USB printers supported by an app. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interfaceProtocol documentation. Created 5 years, 7 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 | « device/usb/usb_device_filter.h ('k') | extensions/common/api/_manifest_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_device_filter.cc
diff --git a/device/usb/usb_device_filter.cc b/device/usb/usb_device_filter.cc
index 970bbd041b17c2dc05d1f39f3278dda50d09e8aa..b52a4a3edc9af7af8603b80288d8181ce942441a 100644
--- a/device/usb/usb_device_filter.cc
+++ b/device/usb/usb_device_filter.cc
@@ -96,7 +96,7 @@ bool UsbDeviceFilter::Matches(scoped_refptr<UsbDevice> device) const {
return true;
}
-base::Value* UsbDeviceFilter::ToValue() const {
+scoped_ptr<base::Value> UsbDeviceFilter::ToValue() const {
scoped_ptr<base::DictionaryValue> obj(new base::DictionaryValue());
if (vendor_id_set_) {
@@ -116,7 +116,7 @@ base::Value* UsbDeviceFilter::ToValue() const {
}
}
- return obj.release();
+ return obj.Pass();
}
// static
« no previous file with comments | « device/usb/usb_device_filter.h ('k') | extensions/common/api/_manifest_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698