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

Unified Diff: chrome/browser/web_applications/web_app_linux.cc

Issue 2621163005: Remove all use of FileHandlersInfo from desktop shortcut creation. (Closed)
Patch Set: Mac tests: Remove FileHandlersInfo references (plus tiny rebase). Created 3 years, 10 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/web_applications/web_app_linux.cc
diff --git a/chrome/browser/web_applications/web_app_linux.cc b/chrome/browser/web_applications/web_app_linux.cc
index f1b1b5ecf1afea1066d7e012261de7e07b4c611b..893173b1d85f50758b71b15caf7bdf7b85b34423 100644
--- a/chrome/browser/web_applications/web_app_linux.cc
+++ b/chrome/browser/web_applications/web_app_linux.cc
@@ -24,7 +24,6 @@ namespace internals {
bool CreatePlatformShortcuts(
const base::FilePath& web_app_path,
std::unique_ptr<ShortcutInfo> shortcut_info,
- const extensions::FileHandlersInfo& file_handlers_info,
const ShortcutLocations& creation_locations,
ShortcutCreationReason /*creation_reason*/) {
#if !defined(OS_CHROMEOS)
@@ -44,11 +43,9 @@ void DeletePlatformShortcuts(const base::FilePath& web_app_path,
#endif
}
-void UpdatePlatformShortcuts(
- const base::FilePath& web_app_path,
- const base::string16& /*old_app_title*/,
- std::unique_ptr<ShortcutInfo> shortcut_info,
- const extensions::FileHandlersInfo& file_handlers_info) {
+void UpdatePlatformShortcuts(const base::FilePath& web_app_path,
+ const base::string16& /*old_app_title*/,
+ std::unique_ptr<ShortcutInfo> shortcut_info) {
DCHECK_CURRENTLY_ON(content::BrowserThread::FILE);
std::unique_ptr<base::Environment> env(base::Environment::Create());
@@ -65,8 +62,7 @@ void UpdatePlatformShortcuts(
creation_locations.applications_menu_location = APP_MENU_LOCATION_HIDDEN;
CreatePlatformShortcuts(web_app_path, std::move(shortcut_info),
- file_handlers_info, creation_locations,
- SHORTCUT_CREATION_AUTOMATED);
+ creation_locations, SHORTCUT_CREATION_AUTOMATED);
}
void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {

Powered by Google App Engine
This is Rietveld 408576698