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

Unified Diff: ui/app_list/views/app_list_view_unittest.cc

Issue 508813002: Move ownership of the AppListViewDelegate into the AppListService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 3 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/app_list/views/app_list_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/app_list_view_unittest.cc
diff --git a/ui/app_list/views/app_list_view_unittest.cc b/ui/app_list/views/app_list_view_unittest.cc
index f59156b6500ae05455004ab8fd5cfc5c9c57d251..e758f46a863dbfa2b66a8c249e618363cf59a1a0 100644
--- a/ui/app_list/views/app_list_view_unittest.cc
+++ b/ui/app_list/views/app_list_view_unittest.cc
@@ -130,7 +130,7 @@ class AppListViewTestContext {
const TestType test_type_;
scoped_ptr<base::RunLoop> run_loop_;
app_list::AppListView* view_; // Owned by native widget.
- app_list::test::AppListTestViewDelegate* delegate_; // Owned by |view_|;
+ scoped_ptr<app_list::test::AppListTestViewDelegate> delegate_;
DISALLOW_COPY_AND_ASSIGN(AppListViewTestContext);
};
@@ -175,8 +175,8 @@ AppListViewTestContext::AppListViewTestContext(int test_type,
break;
}
- delegate_ = new UnitTestViewDelegate(this);
- view_ = new app_list::AppListView(delegate_);
+ delegate_.reset(new UnitTestViewDelegate(this));
+ view_ = new app_list::AppListView(delegate_.get());
// Initialize centered around a point that ensures the window is wholly shown.
view_->InitAsBubbleAtFixedLocation(parent,
« no previous file with comments | « ui/app_list/views/app_list_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698