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

Unified Diff: chrome/browser/chromeos/printer_detector/printer_detector.cc

Issue 1870793002: Convert //chrome/browser/chromeos 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: chrome/browser/chromeos/printer_detector/printer_detector.cc
diff --git a/chrome/browser/chromeos/printer_detector/printer_detector.cc b/chrome/browser/chromeos/printer_detector/printer_detector.cc
index 42bba81378634db9e7956d78f27850a532775a87..89903df0cd0e5d87102568f6310fb727f74b32af 100644
--- a/chrome/browser/chromeos/printer_detector/printer_detector.cc
+++ b/chrome/browser/chromeos/printer_detector/printer_detector.cc
@@ -5,12 +5,13 @@
#include "chrome/browser/chromeos/printer_detector/printer_detector.h"
#include <stdint.h>
+
+#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
@@ -172,7 +173,7 @@ class SearchPrinterAppNotificationDelegate : public NotificationDelegate {
extensions::EventRouter* event_router =
extensions::EventRouter::Get(browser_context_);
- scoped_ptr<extensions::Event> event(new extensions::Event(
+ std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::WEBSTORE_WIDGET_PRIVATE_ON_SHOW_WIDGET,
webstore_widget_private_api::OnShowWidget::kEventName,
webstore_widget_private_api::OnShowWidget::Create(options)));
@@ -202,7 +203,7 @@ void ShowPrinterPluggedNotification(
NotificationUIManager* notification_ui_manager,
const scoped_refptr<device::UsbDevice>& device) {
ui::ResourceBundle& bundle = ui::ResourceBundle::GetSharedInstance();
- scoped_ptr<Notification> notification;
+ std::unique_ptr<Notification> notification;
const std::string kVendorIdStr = base::IntToString(device->vendor_id());
const std::string kProductIdStr = base::IntToString(device->product_id());
« no previous file with comments | « chrome/browser/chromeos/preferences_unittest.cc ('k') | chrome/browser/chromeos/printer_detector/printer_detector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698