| Index: ash/wm/app_list_shower_delegate_factory.cc
|
| diff --git a/ash/wm/app_list_shower_delegate_factory.cc b/ash/wm/app_list_shower_delegate_factory.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e94fe9533d7f5a2187175605787a9222d481ff82
|
| --- /dev/null
|
| +++ b/ash/wm/app_list_shower_delegate_factory.cc
|
| @@ -0,0 +1,24 @@
|
| +// 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/wm/app_list_shower_delegate_factory.h"
|
| +
|
| +#include "ash/wm/app_list_shower_delegate.h"
|
| +#include "ash/wm/app_list_view_delegate_factory.h"
|
| +
|
| +namespace ash {
|
| +
|
| +AppListShowerDelegateFactory::AppListShowerDelegateFactory(
|
| + scoped_ptr<AppListViewDelegateFactory> view_delegate_factory)
|
| + : view_delegate_factory_(std::move(view_delegate_factory)) {}
|
| +
|
| +AppListShowerDelegateFactory::~AppListShowerDelegateFactory() {}
|
| +
|
| +scoped_ptr<app_list::AppListShowerDelegate>
|
| +AppListShowerDelegateFactory::GetDelegate(app_list::AppListShower* shower) {
|
| + return scoped_ptr<app_list::AppListShowerDelegate>(
|
| + new AppListShowerDelegate(shower, view_delegate_factory_.get()));
|
| +}
|
| +
|
| +} // namespace ash
|
|
|