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

Unified Diff: chrome/browser/chromeos/ui/idle_app_name_notification_view.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
Index: chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
diff --git a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
index 06dd15490a089664b3264666726ce85896c73188..73b8f6524447304bb0b2ea3e7542b4664b6c42b2 100644
--- a/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
+++ b/chrome/browser/chromeos/ui/idle_app_name_notification_view.cc
@@ -115,10 +115,9 @@ class IdleAppNameNotificationDelegateView
int message_visibility_time_in_ms)
: owner_(owner),
widget_closed_(false) {
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
+ ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
// Add the application name label to the message.
- AddLabel(app_name,
- rb.GetFontList(ui::ResourceBundle::BoldFont),
+ AddLabel(app_name, rb->GetFontList(ui::ResourceBundle::BoldFont),
error ? kErrorTextColor : kTextColor);
spoken_text_ = app_name;
SetLayoutManager(new views::FillLayout);
« no previous file with comments | « chrome/browser/chromeos/status/network_menu.cc ('k') | chrome/browser/chromeos/ui/kiosk_external_update_notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698