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

Unified Diff: ash/shelf/shelf_view.cc

Issue 1119983006: [ash/shelf] ResourceBundle should be used as pointer not non-const ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_view.cc
diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
index f46233c74f0a3d2c5ff0e13779108f2fb591e263..3dc58fd33a6b640298ccdcaa36cdf59dcac25c05 100644
--- a/ash/shelf/shelf_view.cc
+++ b/ash/shelf/shelf_view.cc
@@ -172,8 +172,8 @@ const gfx::FontList* ShelfMenuModelAdapter::GetLabelFontList(
if (command_id != kCommandIdOfMenuName)
return MenuModelAdapter::GetLabelFontList(command_id);
- ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
- return &rb.GetFontList(ui::ResourceBundle::BoldFont);
+ ui::ResourceBundle* rb = &ui::ResourceBundle::GetSharedInstance();
+ return &rb->GetFontList(ui::ResourceBundle::BoldFont);
}
bool ShelfMenuModelAdapter::IsCommandEnabled(int id) const {
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698