Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 2143893002: Purge the App Launcher code from Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comment Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_);

Powered by Google App Engine
This is Rietveld 408576698