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

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: Rebase to ToT 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..652295b15bd82feaa2071c4abbb4fb95490fb36a 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,10 @@ 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;
}
« no previous file with comments | « chrome/browser/ui/views/profile_reset_bubble_view.cc ('k') | chrome/browser/ui/views/speech_recognition_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698