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

Unified Diff: chrome/browser/gtk/browser_actions_toolbar_gtk.cc

Issue 274083: Gtk/extensions: Convert a crash into a NOTREACHED(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: compile fix, 2 Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_actions_toolbar_gtk.cc
===================================================================
--- chrome/browser/gtk/browser_actions_toolbar_gtk.cc (revision 29354)
+++ chrome/browser/gtk/browser_actions_toolbar_gtk.cc (working copy)
@@ -197,7 +197,7 @@
for (size_t i = 0; i < browser_actions.size(); ++i) {
Extension* extension = extension_service->GetExtensionById(
- browser_actions[i]->id());
+ browser_actions[i]->extension_id());
CreateButtonForExtension(extension);
}
}
@@ -214,13 +214,13 @@
new BrowserActionButton(browser_, extension));
gtk_box_pack_end(GTK_BOX(hbox_.get()), button->widget(), FALSE, FALSE, 0);
gtk_widget_show(button->widget());
- extension_button_map_[extension->id()] = button;
+ extension_button_map_[extension->extension_id()] = button;
UpdateVisibility();
}
void BrowserActionsToolbarGtk::RemoveButtonForExtension(Extension* extension) {
- if (extension_button_map_.erase(extension->id()))
+ if (extension_button_map_.erase(extension->extension_id()))
UpdateVisibility();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698