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

Unified Diff: ui/views/view_unittest.cc

Issue 10832184: Fixed memory leak. Untangled confusing code with menu initialization and ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | « ui/views/controls/button/button_dropdown.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_unittest.cc
===================================================================
--- ui/views/view_unittest.cc (revision 150365)
+++ ui/views/view_unittest.cc (working copy)
@@ -1762,7 +1762,7 @@
virtual void SetUp() OVERRIDE {
ViewTest::SetUp();
- test_dialog_ = new TestDialog(&mock_menu_model_);
+ test_dialog_ = new TestDialog(new MockMenuModel());
Widget* window =
Widget::CreateWindowWithBounds(test_dialog_, gfx::Rect(0, 0, 100, 100));
test_dialog_->widget_ = window;
@@ -1779,7 +1779,6 @@
}
TestDialog* test_dialog_;
- MockMenuModel mock_menu_model_;
// This is owned by test_dialog_.
View* button_as_view_;
« no previous file with comments | « ui/views/controls/button/button_dropdown.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698