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

Unified Diff: chrome/browser/chromeos/ui/kiosk_external_update_notification.cc

Issue 1123723002: [chrome/browser/chromeos] ui::ResourceBundle::GetSharedInstance should return a pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « chrome/browser/chromeos/ui/idle_app_name_notification_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
diff --git a/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc b/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
index 179759cffbd24bf5d0e84817d168496b16687321..ecb327263c1d3c7e23222091011923375fd3be4a 100644
--- a/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
+++ b/chrome/browser/chromeos/ui/kiosk_external_update_notification.cc
@@ -71,8 +71,8 @@ class KioskExternalUpdateNotificationView : public views::WidgetDelegateView {
void AddLabel() {
label_ = new views::Label;
label_->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- label_->SetFontList(rb.GetFontList(ui::ResourceBundle::BoldFont));
+ ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
+ label_->SetFontList(rb->GetFontList(ui::ResourceBundle::BoldFont));
label_->SetEnabledColor(kTextColor);
label_->SetDisabledColor(kTextColor);
label_->SetAutoColorReadabilityEnabled(false);
« no previous file with comments | « chrome/browser/chromeos/ui/idle_app_name_notification_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698