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

Unified Diff: chrome/browser/ui/views/infobars/after_translate_infobar.cc

Issue 11775019: Add InitWidgets() phase for GTK infobars. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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/ui/views/infobars/after_translate_infobar.cc
===================================================================
--- chrome/browser/ui/views/infobars/after_translate_infobar.cc (revision 194504)
+++ chrome/browser/ui/views/infobars/after_translate_infobar.cc (working copy)
@@ -133,7 +133,7 @@
void AfterTranslateInfoBar::ButtonPressed(views::Button* sender,
const ui::Event& event) {
- if (!owned())
+ if (!owner())
return; // We're closing; don't call anything, it might access the owner.
if (sender == revert_button_)
GetDelegate()->RevertTranslation();
@@ -155,7 +155,7 @@
void AfterTranslateInfoBar::OnMenuButtonClicked(views::View* source,
const gfx::Point& point) {
- if (!owned())
+ if (!owner())
return; // We're closing; don't call anything, it might access the owner.
if (source == original_language_menu_button_) {
RunMenuAt(original_language_menu_model_.get(),

Powered by Google App Engine
This is Rietveld 408576698