Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ash / test / test_shell_delegate.cc
index 982cae4..1d95188 100644 (file)
@@ -143,8 +143,10 @@ content::BrowserContext* TestShellDelegate::GetActiveBrowserContext() {
   return active_browser_context_.get();
 }
 
-app_list::AppListViewDelegate* TestShellDelegate::CreateAppListViewDelegate() {
-  return new app_list::test::AppListTestViewDelegate;
+app_list::AppListViewDelegate* TestShellDelegate::GetAppListViewDelegate() {
+  if (!app_list_view_delegate_)
+    app_list_view_delegate_.reset(new app_list::test::AppListTestViewDelegate);
+  return app_list_view_delegate_.get();
 }
 
 ShelfDelegate* TestShellDelegate::CreateShelfDelegate(ShelfModel* model) {