| 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 "chrome/browser/ui/app_list/search/arc_app_result.h" | 5 #include "chrome/browser/ui/app_list/search/arc_app_result.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" | 8 #include "chrome/browser/ui/app_list/app_list_controller_delegate.h" |
| 9 #include "chrome/browser/ui/app_list/arc/arc_app_context_menu.h" | 9 #include "chrome/browser/ui/app_list/arc/arc_app_context_menu.h" |
| 10 #include "chrome/browser/ui/app_list/arc/arc_app_icon_loader.h" | 10 #include "chrome/browser/ui/app_list/arc/arc_app_icon_loader.h" |
| 11 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" | 11 #include "chrome/browser/ui/app_list/arc/arc_app_utils.h" |
| 12 #include "chrome/browser/ui/app_list/search/search_util.h" | 12 #include "chrome/browser/ui/app_list/search/search_util.h" |
| 13 #include "content/public/browser/user_metrics.h" | |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 const char kArcAppPrefix[] = "arc://"; | 15 const char kArcAppPrefix[] = "arc://"; |
| 17 } | 16 } |
| 18 | 17 |
| 19 namespace app_list { | 18 namespace app_list { |
| 20 | 19 |
| 21 ArcAppResult::ArcAppResult(Profile* profile, | 20 ArcAppResult::ArcAppResult(Profile* profile, |
| 22 const std::string& app_id, | 21 const std::string& app_id, |
| 23 AppListControllerDelegate* controller, | 22 AppListControllerDelegate* controller, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return copy; | 65 return copy; |
| 67 } | 66 } |
| 68 | 67 |
| 69 ui::MenuModel* ArcAppResult::GetContextMenuModel() { | 68 ui::MenuModel* ArcAppResult::GetContextMenuModel() { |
| 70 context_menu_.reset(new ArcAppContextMenu( | 69 context_menu_.reset(new ArcAppContextMenu( |
| 71 this, profile(), app_id(), controller())); | 70 this, profile(), app_id(), controller())); |
| 72 return context_menu_->GetMenuModel(); | 71 return context_menu_->GetMenuModel(); |
| 73 } | 72 } |
| 74 | 73 |
| 75 } // namespace app_list | 74 } // namespace app_list |
| OLD | NEW |