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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.h

Issue 1864423002: ToolbarButton: Reset menu runner before deleting its menu's delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests working, but I do not like what the test suite makes me do Created 4 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/toolbar/toolbar_button.h
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.h b/chrome/browser/ui/views/toolbar/toolbar_button.h
index 11393df8efe1376ddc46d1f7bedc420ae1570731..b4c94cd6d7b6b4f01b56ea6f5bc052673fb80076 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.h
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.h
@@ -14,6 +14,10 @@
class Profile;
+namespace test {
+class ToolbarButtonTestApi;
+}
+
namespace ui {
class MenuModel;
}
@@ -69,6 +73,8 @@ class ToolbarButton : public views::LabelButton,
virtual void ShowDropDownMenu(ui::MenuSourceType source_type);
private:
+ friend test::ToolbarButtonTestApi;
+
// Callback for MenuModelAdapter.
void OnMenuClosed();

Powered by Google App Engine
This is Rietveld 408576698