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

Unified Diff: extensions/common/api/printer_provider/usb_printer_manifest_data.cc

Issue 1908953003: Convert //extensions/{common,shell} from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase? Created 4 years, 8 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: extensions/common/api/printer_provider/usb_printer_manifest_data.cc
diff --git a/extensions/common/api/printer_provider/usb_printer_manifest_data.cc b/extensions/common/api/printer_provider/usb_printer_manifest_data.cc
index d8480139edc6dadf7bccb3fb16d3ac0305662baf..e7e7acce17030199ae694bf8016cc2ff15ffcf14 100644
--- a/extensions/common/api/printer_provider/usb_printer_manifest_data.cc
+++ b/extensions/common/api/printer_provider/usb_printer_manifest_data.cc
@@ -28,16 +28,16 @@ const UsbPrinterManifestData* UsbPrinterManifestData::Get(
}
// static
-scoped_ptr<UsbPrinterManifestData> UsbPrinterManifestData::FromValue(
+std::unique_ptr<UsbPrinterManifestData> UsbPrinterManifestData::FromValue(
const base::Value& value,
base::string16* error) {
- scoped_ptr<api::extensions_manifest_types::UsbPrinters> usb_printers =
+ std::unique_ptr<api::extensions_manifest_types::UsbPrinters> usb_printers =
api::extensions_manifest_types::UsbPrinters::FromValue(value, error);
if (!usb_printers) {
return nullptr;
}
- scoped_ptr<UsbPrinterManifestData> result(new UsbPrinterManifestData());
+ std::unique_ptr<UsbPrinterManifestData> result(new UsbPrinterManifestData());
for (const auto& input : usb_printers->filters) {
UsbDeviceFilter output;
output.SetVendorId(input.vendor_id);

Powered by Google App Engine
This is Rietveld 408576698