Commit 3b738788 authored by Jay Harris's avatar Jay Harris Committed by Commit Bot

WebApps: Removes unused function GetWebAppDataDirectory.

Bug: 860581
Change-Id: I3536dfbae57e9141a5f6fdbcb6c1722252a60d59
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1850686Reviewed-by: default avatarAlexey Baskakov <loyso@chromium.org>
Commit-Queue: Jay Harris <harrisjay@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704507}
parent 7e9c5d4e
...@@ -255,13 +255,6 @@ bool ShouldCreateShortcutFor(ShortcutCreationReason reason, ...@@ -255,13 +255,6 @@ bool ShouldCreateShortcutFor(ShortcutCreationReason reason,
return reason == SHORTCUT_CREATION_BY_USER; return reason == SHORTCUT_CREATION_BY_USER;
} }
base::FilePath GetWebAppDataDirectory(const base::FilePath& profile_path,
const extensions::Extension& extension) {
return GetWebAppDataDirectory(
profile_path, extension.id(),
GURL(extensions::AppLaunchInfo::GetLaunchWebURL(&extension)));
}
void CreateShortcuts(ShortcutCreationReason reason, void CreateShortcuts(ShortcutCreationReason reason,
const ShortcutLocations& locations, const ShortcutLocations& locations,
Profile* profile, Profile* profile,
......
...@@ -54,11 +54,6 @@ bool ShouldCreateShortcutFor(ShortcutCreationReason reason, ...@@ -54,11 +54,6 @@ bool ShouldCreateShortcutFor(ShortcutCreationReason reason,
Profile* profile, Profile* profile,
const extensions::Extension* extension); const extensions::Extension* extension);
// Gets the user data directory to use for |extension| located inside
// |profile_path|.
base::FilePath GetWebAppDataDirectory(const base::FilePath& profile_path,
const extensions::Extension& extension);
// Creates shortcuts for an app. This loads the app's icon from disk, and calls // Creates shortcuts for an app. This loads the app's icon from disk, and calls
// CreateShortcutsWithInfo(). If you already have a ShortcutInfo with the app's // CreateShortcutsWithInfo(). If you already have a ShortcutInfo with the app's
// icon loaded, you should use CreateShortcutsWithInfo() directly. // icon loaded, you should use CreateShortcutsWithInfo() directly.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment