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

Unified Diff: chrome/browser/ui/views/tabs/alert_indicator_button.h

Issue 1865213004: Convert //chrome/browser/ui 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/ui/views/tabs/alert_indicator_button.h
diff --git a/chrome/browser/ui/views/tabs/alert_indicator_button.h b/chrome/browser/ui/views/tabs/alert_indicator_button.h
index 0d734ce1fcb3aa877d2c09aa9282c9335a8a1a0d..7f47c3bc0ee8c76eac2f1d8108bec462d27a0b17 100644
--- a/chrome/browser/ui/views/tabs/alert_indicator_button.h
+++ b/chrome/browser/ui/views/tabs/alert_indicator_button.h
@@ -5,8 +5,9 @@
#ifndef CHROME_BROWSER_UI_VIEWS_TABS_ALERT_INDICATOR_BUTTON_H_
#define CHROME_BROWSER_UI_VIEWS_TABS_ALERT_INDICATOR_BUTTON_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/tabs/tab_utils.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/view_targeter_delegate.h"
@@ -91,8 +92,8 @@ class AlertIndicatorButton : public views::ImageButton,
// Alert indicator fade-in/out animation (i.e., only on show/hide, not a
// continuous animation).
- scoped_ptr<gfx::AnimationDelegate> fade_animation_delegate_;
- scoped_ptr<gfx::Animation> fade_animation_;
+ std::unique_ptr<gfx::AnimationDelegate> fade_animation_delegate_;
+ std::unique_ptr<gfx::Animation> fade_animation_;
TabAlertState showing_alert_state_;
DISALLOW_COPY_AND_ASSIGN(AlertIndicatorButton);
« no previous file with comments | « chrome/browser/ui/views/tab_modal_confirm_dialog_views.h ('k') | chrome/browser/ui/views/tabs/alert_indicator_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698