OLD | NEW |
| (Empty) |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "ash/app_list/app_list_shower_delegate_factory.h" | |
6 | |
7 #include "ash/app_list/app_list_shower_delegate.h" | |
8 #include "ash/app_list/app_list_view_delegate_factory.h" | |
9 #include "base/memory/ptr_util.h" | |
10 | |
11 namespace ash { | |
12 | |
13 AppListShowerDelegateFactory::AppListShowerDelegateFactory( | |
14 std::unique_ptr<AppListViewDelegateFactory> view_delegate_factory) | |
15 : view_delegate_factory_(std::move(view_delegate_factory)) {} | |
16 | |
17 AppListShowerDelegateFactory::~AppListShowerDelegateFactory() {} | |
18 | |
19 std::unique_ptr<app_list::AppListShowerDelegate> | |
20 AppListShowerDelegateFactory::GetDelegate(app_list::AppListShower* shower) { | |
21 return base::WrapUnique( | |
22 new AppListShowerDelegate(shower, view_delegate_factory_.get())); | |
23 } | |
24 | |
25 } // namespace ash | |
OLD | NEW |