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

Unified Diff: app/menus/simple_menu_model.cc

Issue 2928005: Retrieve favicons from history as NavigationEntries are converted from TabNav... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years 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: app/menus/simple_menu_model.cc
===================================================================
--- app/menus/simple_menu_model.cc (revision 70178)
+++ app/menus/simple_menu_model.cc (working copy)
@@ -239,7 +239,7 @@
return items_.at(FlipIndex(index)).group_id;
}
-bool SimpleMenuModel::GetIconAt(int index, SkBitmap* icon) const {
+bool SimpleMenuModel::GetIconAt(int index, SkBitmap* icon) {
if (IsItemDynamicAt(index))
return delegate_->GetIconForCommandId(GetCommandIdAt(index), icon);
@@ -284,6 +284,9 @@
return items_.at(FlipIndex(index)).submenu;
}
+void SimpleMenuModel::SetDelegate(menus::MenuModel::Delegate* delegate) {
+}
+
int SimpleMenuModel::FlipIndex(int index) const {
return index;
}

Powered by Google App Engine
This is Rietveld 408576698