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

Unified Diff: extensions/common/api/printer_provider/usb_printer_manifest_handler.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_handler.cc
diff --git a/extensions/common/api/printer_provider/usb_printer_manifest_handler.cc b/extensions/common/api/printer_provider/usb_printer_manifest_handler.cc
index e356050b7e116491badda09cbf2b7022029ed061..eb6468f820120e3220e8451989d95dc286f11285 100644
--- a/extensions/common/api/printer_provider/usb_printer_manifest_handler.cc
+++ b/extensions/common/api/printer_provider/usb_printer_manifest_handler.cc
@@ -20,7 +20,7 @@ bool UsbPrinterManifestHandler::Parse(Extension* extension,
base::string16* error) {
const base::Value* usb_printers = nullptr;
CHECK(extension->manifest()->Get(manifest_keys::kUsbPrinters, &usb_printers));
- scoped_ptr<UsbPrinterManifestData> data =
+ std::unique_ptr<UsbPrinterManifestData> data =
UsbPrinterManifestData::FromValue(*usb_printers, error);
if (!data) {
return false;

Powered by Google App Engine
This is Rietveld 408576698