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

Unified Diff: components/infobars/core/simple_alert_infobar_delegate.cc

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … 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: components/infobars/core/simple_alert_infobar_delegate.cc
diff --git a/components/infobars/core/simple_alert_infobar_delegate.cc b/components/infobars/core/simple_alert_infobar_delegate.cc
index 51c98e9cf6dbc20618074ff713c7ff7d49d88101..fb6658649ac4e5871a86dbd9a9f1d9815a7632df 100644
--- a/components/infobars/core/simple_alert_infobar_delegate.cc
+++ b/components/infobars/core/simple_alert_infobar_delegate.cc
@@ -4,6 +4,8 @@
#include "components/infobars/core/simple_alert_infobar_delegate.h"
+#include <memory>
+
#include "components/infobars/core/infobar.h"
#include "components/infobars/core/infobar_manager.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -17,7 +19,7 @@ void SimpleAlertInfoBarDelegate::Create(
const base::string16& message,
bool auto_expire) {
infobar_manager->AddInfoBar(infobar_manager->CreateConfirmInfoBar(
- scoped_ptr<ConfirmInfoBarDelegate>(new SimpleAlertInfoBarDelegate(
+ std::unique_ptr<ConfirmInfoBarDelegate>(new SimpleAlertInfoBarDelegate(
infobar_identifier, icon_id, vector_icon_id, message, auto_expire))));
}
« no previous file with comments | « components/infobars/core/infobar_manager.cc ('k') | components/keyed_service/content/browser_context_dependency_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698