| Index: chrome/browser/ui/app_list/search/app_result.cc
|
| diff --git a/chrome/browser/ui/app_list/search/app_result.cc b/chrome/browser/ui/app_list/search/app_result.cc
|
| index 92c68fd284749490c72104031b0d89f67ce9774a..4f628b349c6c84b23d26f4b5721f2eb5b8ca62af 100644
|
| --- a/chrome/browser/ui/app_list/search/app_result.cc
|
| +++ b/chrome/browser/ui/app_list/search/app_result.cc
|
| @@ -10,6 +10,7 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/app_list/app_context_menu.h"
|
| #include "chrome/browser/ui/app_list/app_list_controller_delegate.h"
|
| +#include "chrome/browser/ui/app_list/search/search_util.h"
|
| #include "chrome/browser/ui/extensions/extension_enable_flow.h"
|
| #include "chrome/browser/ui/webui/ntp/core_app_launcher_handler.h"
|
| #include "content/public/browser/user_metrics.h"
|
| @@ -89,6 +90,7 @@ void AppResult::UpdateFromLastLaunched(const base::Time& current_time,
|
| }
|
|
|
| void AppResult::Open(int event_flags) {
|
| + RecordHistogram(APP_SEARCH_RESULT);
|
| const extensions::Extension* extension =
|
| extensions::ExtensionSystem::Get(profile_)->extension_service()
|
| ->GetInstalledExtension(app_id_);
|
| @@ -114,21 +116,14 @@ void AppResult::Open(int event_flags) {
|
| event_flags);
|
| }
|
|
|
| -void AppResult::InvokeAction(int action_index, int event_flags) {}
|
| -
|
| -scoped_ptr<ChromeSearchResult> AppResult::Duplicate() {
|
| - scoped_ptr<ChromeSearchResult> copy(
|
| - new AppResult(profile_, app_id_, controller_));
|
| +scoped_ptr<SearchResult> AppResult::Duplicate() {
|
| + scoped_ptr<SearchResult> copy(new AppResult(profile_, app_id_, controller_));
|
| copy->set_title(title());
|
| copy->set_title_tags(title_tags());
|
|
|
| return copy.Pass();
|
| }
|
|
|
| -ChromeSearchResultType AppResult::GetType() {
|
| - return APP_SEARCH_RESULT;
|
| -}
|
| -
|
| ui::MenuModel* AppResult::GetContextMenuModel() {
|
| if (!context_menu_) {
|
| context_menu_.reset(new AppContextMenu(
|
|
|