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

Unified Diff: components/infobars/core/infobar_manager.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/infobar_manager.cc
diff --git a/components/infobars/core/infobar_manager.cc b/components/infobars/core/infobar_manager.cc
index eb6fc476bc4ad31ec8a8a8922dcca4be197f157c..e1ca4f06c9d4ac0086d22bc9e42b41e312ca74b3 100644
--- a/components/infobars/core/infobar_manager.cc
+++ b/components/infobars/core/infobar_manager.cc
@@ -35,7 +35,7 @@ void InfoBarManager::Observer::OnManagerShuttingDown(InfoBarManager* manager) {
// InfoBarManager --------------------------------------------------------------
-InfoBar* InfoBarManager::AddInfoBar(scoped_ptr<InfoBar> infobar) {
+InfoBar* InfoBarManager::AddInfoBar(std::unique_ptr<InfoBar> infobar) {
DCHECK(infobar);
if (!infobars_enabled_)
return NULL;
@@ -67,7 +67,7 @@ void InfoBarManager::RemoveAllInfoBars(bool animate) {
}
InfoBar* InfoBarManager::ReplaceInfoBar(InfoBar* old_infobar,
- scoped_ptr<InfoBar> new_infobar) {
+ std::unique_ptr<InfoBar> new_infobar) {
DCHECK(old_infobar);
if (!infobars_enabled_)
return AddInfoBar(std::move(new_infobar)); // Deletes the infobar.
« no previous file with comments | « components/infobars/core/infobar_manager.h ('k') | components/infobars/core/simple_alert_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698