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

Unified Diff: ios/chrome/browser/tab_parenting_global_observer.h

Issue 1861593005: Convert //ios 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: ios/chrome/browser/tab_parenting_global_observer.h
diff --git a/ios/chrome/browser/tab_parenting_global_observer.h b/ios/chrome/browser/tab_parenting_global_observer.h
index 61f64ac840dc1abd650aa63278077e304c0993b9..ff14a078e91821530f283a328c6dc17e7938d2de 100644
--- a/ios/chrome/browser/tab_parenting_global_observer.h
+++ b/ios/chrome/browser/tab_parenting_global_observer.h
@@ -5,9 +5,10 @@
#ifndef IOS_CHROME_BROWSER_TAB_PARENTING_GLOBAL_OBSERVER_H_
#define IOS_CHROME_BROWSER_TAB_PARENTING_GLOBAL_OBSERVER_H_
+#include <memory>
+
#include "base/callback_list.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
template <typename T>
@@ -29,7 +30,7 @@ class TabParentingGlobalObserver {
static TabParentingGlobalObserver* GetInstance();
// Registers |cb| to be invoked when a tab is parented.
- scoped_ptr<base::CallbackList<void(web::WebState*)>::Subscription>
+ std::unique_ptr<base::CallbackList<void(web::WebState*)>::Subscription>
RegisterCallback(const OnTabParentedCallback& cb);
// Called to notify all registered callbacks that |web_state| was parented.
« no previous file with comments | « ios/chrome/browser/sync/sync_setup_service_factory.cc ('k') | ios/chrome/browser/tab_parenting_global_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698