Index: ash/app_list/app_list_presenter_delegate_factory.cc |
diff --git a/ash/app_list/app_list_presenter_delegate_factory.cc b/ash/app_list/app_list_presenter_delegate_factory.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..bf051bdc9b0d6a69cff22b329f915a48815d04d6 |
--- /dev/null |
+++ b/ash/app_list/app_list_presenter_delegate_factory.cc |
@@ -0,0 +1,26 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ash/app_list/app_list_presenter_delegate_factory.h" |
+ |
+#include "ash/app_list/app_list_presenter_delegate.h" |
+#include "ash/app_list/app_list_view_delegate_factory.h" |
+#include "base/memory/ptr_util.h" |
+ |
+namespace ash { |
+ |
+AppListPresenterDelegateFactory::AppListPresenterDelegateFactory( |
+ std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory) |
+ : view_delegate_factory_(std::move(view_delegate_factory)) {} |
+ |
+AppListPresenterDelegateFactory::~AppListPresenterDelegateFactory() {} |
+ |
+std::unique_ptr<app_list::AppListPresenterDelegate> |
+AppListPresenterDelegateFactory::GetDelegate( |
+ app_list::AppListPresenter* presenter) { |
+ return base::WrapUnique( |
+ new AppListPresenterDelegate(presenter, view_delegate_factory_.get())); |
+} |
+ |
+} // namespace ash |