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

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

Issue 7745057: Speculative fix for 93314. I suspect the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « chrome/browser/ui/views/infobars/before_translate_infobar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/infobars/before_translate_infobar.cc
diff --git a/chrome/browser/ui/views/infobars/before_translate_infobar.cc b/chrome/browser/ui/views/infobars/before_translate_infobar.cc
index 61a6b127dfcf0b93dad7ffaf18ec9cc66da4ea1c..cadd177ea43fb3d2e1fcdbdf47f3f4498bec0ccf 100644
--- a/chrome/browser/ui/views/infobars/before_translate_infobar.cc
+++ b/chrome/browser/ui/views/infobars/before_translate_infobar.cc
@@ -198,8 +198,8 @@ void BeforeTranslateInfoBar::RunMenu(View* source, const gfx::Point& pt) {
}
views::MenuModelAdapter menu_model_adapter(menu_model);
- views::MenuRunner menu_runner(menu_model_adapter.CreateMenu());
- if (menu_runner.RunMenuAt(source->GetWidget(), NULL,
+ menu_runner_.reset(new views::MenuRunner(menu_model_adapter.CreateMenu()));
+ if (menu_runner_->RunMenuAt(source->GetWidget(), NULL,
gfx::Rect(pt, gfx::Size()), views::MenuItemView::TOPRIGHT,
views::MenuRunner::HAS_MNEMONICS) == views::MenuRunner::MENU_DELETED)
return;
« no previous file with comments | « chrome/browser/ui/views/infobars/before_translate_infobar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698