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

Unified Diff: ui/app_list/views/speech_view.cc

Issue 145033006: views: Make View::set_border() take a scoped_ptr<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ClearBorder() 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: ui/app_list/views/speech_view.cc
diff --git a/ui/app_list/views/speech_view.cc b/ui/app_list/views/speech_view.cc
index 7f59222d4c3725aa5e5cc88de1c8b970c7e52cbb..c6bad7c4549b49784b51a01cca22d7698f78adab 100644
--- a/ui/app_list/views/speech_view.cc
+++ b/ui/app_list/views/speech_view.cc
@@ -94,11 +94,11 @@ bool MicButton::HitTestRect(const gfx::Rect& rect) const {
SpeechView::SpeechView(AppListViewDelegate* delegate)
: delegate_(delegate) {
- set_border(new views::ShadowBorder(
- kShadowBlur,
- kShadowColor,
- kShadowOffset, // Vertical offset.
- 0));
+ SetBorder(scoped_ptr<views::Border>(
+ new views::ShadowBorder(kShadowBlur,
+ kShadowColor,
+ kShadowOffset, // Vertical offset.
+ 0)));
// To keep the painting order of the border and the background, this class
// actually has a single child of 'container' which has white background and

Powered by Google App Engine
This is Rietveld 408576698