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

Unified Diff: chrome/browser/ui/views/screen_capture_notification_ui_views.cc

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/screen_capture_notification_ui_views.cc
diff --git a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
index fdb11028636c4c5610b0352881e733dfd6770465..6befddb9ba50608b5c12f252042486d625a93d50 100644
--- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
+++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
@@ -285,10 +285,9 @@ ScreenCaptureNotificationUIViews::CreateNonClientFrameView(
kPaddingVertical, kPaddingHorizontal));
SkColor color = widget->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground);
- frame->SetBubbleBorder(scoped_ptr<views::BubbleBorder>(
+ frame->SetBubbleBorder(std::unique_ptr<views::BubbleBorder>(
new views::BubbleBorder(views::BubbleBorder::NONE,
- views::BubbleBorder::SMALL_SHADOW,
- color)));
+ views::BubbleBorder::SMALL_SHADOW, color)));
return frame;
}
@@ -331,8 +330,8 @@ void ScreenCaptureNotificationUIViews::NotifyStopped() {
} // namespace
-scoped_ptr<ScreenCaptureNotificationUI> ScreenCaptureNotificationUI::Create(
- const base::string16& text) {
- return scoped_ptr<ScreenCaptureNotificationUI>(
+std::unique_ptr<ScreenCaptureNotificationUI>
+ScreenCaptureNotificationUI::Create(const base::string16& text) {
+ return std::unique_ptr<ScreenCaptureNotificationUI>(
new ScreenCaptureNotificationUIViews(text));
}

Powered by Google App Engine
This is Rietveld 408576698