| Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| index 1c5f2cf4108c351677551efc5b0ebd4cc7a895b8..94197492d5447e12fad323a3cebf6ae830fb8367 100644
|
| --- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| +++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
|
| @@ -76,10 +76,6 @@
|
| #include "chrome/browser/ui/ash/app_list/app_sync_ui_state_watcher.h"
|
| #endif
|
|
|
| -#if defined(OS_WIN)
|
| -#include "chrome/browser/web_applications/web_app_win.h"
|
| -#endif
|
| -
|
| #if !defined(OS_CHROMEOS)
|
| #include "chrome/grit/chromium_strings.h"
|
| #include "chrome/grit/generated_resources.h"
|
| @@ -94,19 +90,6 @@ namespace {
|
|
|
| const int kAutoLaunchDefaultTimeoutMilliSec = 50;
|
|
|
| -#if defined(OS_WIN)
|
| -void CreateShortcutInWebAppDir(
|
| - const base::FilePath& app_data_dir,
|
| - base::Callback<void(const base::FilePath&)> callback,
|
| - std::unique_ptr<web_app::ShortcutInfo> info) {
|
| - content::BrowserThread::PostTaskAndReplyWithResult(
|
| - content::BrowserThread::FILE, FROM_HERE,
|
| - base::Bind(web_app::CreateShortcutInWebAppDir, app_data_dir,
|
| - base::Passed(&info)),
|
| - callback);
|
| -}
|
| -#endif
|
| -
|
| void PopulateUsers(const base::FilePath& active_profile_path,
|
| app_list::AppListViewDelegate::Users* users) {
|
| users->clear();
|
| @@ -447,32 +430,6 @@ app_list::SpeechUIModel* AppListViewDelegate::GetSpeechUI() {
|
| return speech_ui_.get();
|
| }
|
|
|
| -void AppListViewDelegate::GetShortcutPathForApp(
|
| - const std::string& app_id,
|
| - const base::Callback<void(const base::FilePath&)>& callback) {
|
| -#if defined(OS_WIN)
|
| - const extensions::Extension* extension =
|
| - extensions::ExtensionRegistry::Get(profile_)->GetExtensionById(
|
| - app_id, extensions::ExtensionRegistry::EVERYTHING);
|
| - if (!extension) {
|
| - callback.Run(base::FilePath());
|
| - return;
|
| - }
|
| -
|
| - base::FilePath app_data_dir(
|
| - web_app::GetWebAppDataDirectory(profile_->GetPath(),
|
| - extension->id(),
|
| - GURL()));
|
| -
|
| - web_app::GetShortcutInfoForApp(
|
| - extension,
|
| - profile_,
|
| - base::Bind(CreateShortcutInWebAppDir, app_data_dir, callback));
|
| -#else
|
| - callback.Run(base::FilePath());
|
| -#endif
|
| -}
|
| -
|
| void AppListViewDelegate::StartSearch() {
|
| if (search_controller_) {
|
| search_controller_->Start(is_voice_query_);
|
|
|