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

Unified Diff: ash/system/chromeos/label_tray_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: 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: ash/system/chromeos/label_tray_view.cc
diff --git a/ash/system/chromeos/label_tray_view.cc b/ash/system/chromeos/label_tray_view.cc
index 0ae4604680e61ca05137f232d68d9f0f6bb83a97..9a57b322c4af72eeab1025dd64728779b4a249bc 100644
--- a/ash/system/chromeos/label_tray_view.cc
+++ b/ash/system/chromeos/label_tray_view.cc
@@ -48,9 +48,8 @@ views::View* LabelTrayView::CreateChildView(
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
const gfx::ImageSkia* icon = rb.GetImageSkiaNamed(icon_resource_id_);
child->AddIconAndLabel(*icon, message, gfx::Font::NORMAL);
- child->set_border(
- views::Border::CreateEmptyBorder(0, kTrayPopupPaddingHorizontal,
- 0, kTrayPopupPaddingHorizontal));
+ child->SetBorder(views::Border::CreateEmptyBorder(
+ 0, kTrayPopupPaddingHorizontal, 0, kTrayPopupPaddingHorizontal));
child->text_label()->SetMultiLine(true);
child->text_label()->SizeToFit(kTrayNotificationContentsWidth);
} else {
« no previous file with comments | « ash/system/chromeos/audio/tray_audio.cc ('k') | ash/system/chromeos/network/network_state_list_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698