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

Unified Diff: content/browser/web_contents/aura/gesture_nav_simple.cc

Issue 1874893002: Convert //content/browser 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: content/browser/web_contents/aura/gesture_nav_simple.cc
diff --git a/content/browser/web_contents/aura/gesture_nav_simple.cc b/content/browser/web_contents/aura/gesture_nav_simple.cc
index debe71138ea8142f3301d8341e12171f4654ac2d..4ff4abe5dd269ca0f131edefc965aac6dfffcf09 100644
--- a/content/browser/web_contents/aura/gesture_nav_simple.cc
+++ b/content/browser/web_contents/aura/gesture_nav_simple.cc
@@ -51,7 +51,7 @@ bool ShouldNavigateBack(const NavigationController& controller,
template <class T>
class DeleteAfterAnimation : public ui::ImplicitAnimationObserver {
public:
- explicit DeleteAfterAnimation(scoped_ptr<T> object)
+ explicit DeleteAfterAnimation(std::unique_ptr<T> object)
: object_(std::move(object)) {}
private:
@@ -67,7 +67,7 @@ class DeleteAfterAnimation : public ui::ImplicitAnimationObserver {
BrowserThread::DeleteSoon(BrowserThread::UI, FROM_HERE, this);
}
- scoped_ptr<T> object_;
+ std::unique_ptr<T> object_;
DISALLOW_COPY_AND_ASSIGN(DeleteAfterAnimation);
};

Powered by Google App Engine
This is Rietveld 408576698