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

Unified Diff: chrome/browser/web_applications/web_app_mac.mm

Issue 777543002: Create hosted app shims on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_mac.mm
diff --git a/chrome/browser/web_applications/web_app_mac.mm b/chrome/browser/web_applications/web_app_mac.mm
index 89f6e04d7328ac0dbebc23ab1681dbc558f2d0a9..1aed4d23d2c22f7a1f760cecbf4af9dc4df490c8 100644
--- a/chrome/browser/web_applications/web_app_mac.mm
+++ b/chrome/browser/web_applications/web_app_mac.mm
@@ -1141,6 +1141,16 @@ void DeleteAllShortcutsForProfile(const base::FilePath& profile_path) {
}
}
+void RevealAppShimInFinderForApp(
+ Profile* profile,
+ const base::FilePath& app_data_path) {
+ web_app::ShortcutInfo shortcut_info =
+ BuildShortcutInfoFromBundle(app_data_path);
jackhou1 2014/12/03 05:12:05 BuildShortcutInfoFromBundle actually reads the bun
mitchellj 2014/12/04 04:53:53 Done. When using web_app::ShortcutInfoForExtension
+ web_app::WebAppShortcutCreator shortcut_creator(
+ app_data_path, shortcut_info, extensions::FileHandlersInfo());
+ shortcut_creator.RevealAppShimInFinder();
+}
+
} // namespace internals
} // namespace web_app
« chrome/browser/web_applications/web_app.cc ('K') | « chrome/browser/web_applications/web_app_mac.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698