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

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

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Further renaming Created 6 years, 11 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 a134824ef482836d258f28fee5a57261b7e62494..750e0bc50f37b5aecdb48ae7a1858f7188dd53fb 100644
--- a/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
+++ b/chrome/browser/ui/views/screen_capture_notification_ui_views.cc
@@ -241,9 +241,11 @@ ScreenCaptureNotificationUIViews::CreateNonClientFrameView(
gfx::Insets(kPadding, kPaddingLeft, kPadding, kPadding));
SkColor color = widget->GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground);
- views::BubbleBorder* border = new views::BubbleBorder(
- views::BubbleBorder::NONE, views::BubbleBorder::SMALL_SHADOW, color);
- frame->SetBubbleBorder(border);
+ frame->SetBubbleBorder(scoped_ptr<views::BubbleBorder>(
+ new views::BubbleBorder(
+ views::BubbleBorder::NONE,
+ views::BubbleBorder::SMALL_SHADOW,
+ color)));
return frame;
}

Powered by Google App Engine
This is Rietveld 408576698