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

Unified Diff: chrome/browser/chromeos/status/network_menu.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/status/network_menu.cc
diff --git a/chrome/browser/chromeos/status/network_menu.cc b/chrome/browser/chromeos/status/network_menu.cc
index 9d8d7663eaff30940c0c8da67b106378f9baff3c..df60ba50a866a9c70f83d0c962379c802855c136 100644
--- a/chrome/browser/chromeos/status/network_menu.cc
+++ b/chrome/browser/chromeos/status/network_menu.cc
@@ -248,8 +248,8 @@ bool NetworkMenuModel::IsItemDynamicAt(int index) const {
const gfx::FontList* NetworkMenuModel::GetLabelFontListAt(int index) const {
const gfx::FontList* font_list = NULL;
if (menu_items_[index].flags & FLAG_ASSOCIATED) {
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- font_list = &rb.GetFontList(browser_defaults::kAssociatedNetworkFontStyle);
+ ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
+ font_list = &rb->GetFontList(browser_defaults::kAssociatedNetworkFontStyle);
}
return font_list;

Powered by Google App Engine
This is Rietveld 408576698