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