Chromium Code Reviews| Index: chrome/browser/web_applications/web_app_mac.h |
| diff --git a/chrome/browser/web_applications/web_app_mac.h b/chrome/browser/web_applications/web_app_mac.h |
| index 7c2ff41676a066303c52b8f4fd74904a9396c338..faab803282a8850dd2d5407e44f466f7d245b3db 100644 |
| --- a/chrome/browser/web_applications/web_app_mac.h |
| +++ b/chrome/browser/web_applications/web_app_mac.h |
| @@ -35,6 +35,12 @@ void MaybeLaunchShortcut(const ShortcutInfo& shortcut_info); |
| // Rebuild the shortcut and relaunch it. |
| bool MaybeRebuildShortcut(const base::CommandLine& command_line); |
| +// Reveals app shim in finder given a profile and app. |
|
Robert Sesek
2014/12/05 18:30:37
nit: capitalize Finder
mitchellj
2014/12/09 01:39:52
Acknowledged.
|
| +// Calls RevealAppShimInFinderForAppOnFileThread and schedules it |
| +// on the FILE thread. |
| +void RevealAppShimInFinderForApp(Profile* profile, |
| + const extensions::Extension* app); |
| + |
| // Creates a shortcut for a web application. The shortcut is a stub app |
| // that simply loads the browser framework and runs the given app. |
| class WebAppShortcutCreator { |
| @@ -66,15 +72,15 @@ class WebAppShortcutCreator { |
| void DeleteShortcuts(); |
| bool UpdateShortcuts(); |
| + // Show the bundle we just generated in the Finder. |
| + virtual void RevealAppShimInFinder() const; |
| + |
| protected: |
| // Returns a path to an app bundle with the given id. Or an empty path if no |
| // matching bundle was found. |
| // Protected and virtual so it can be mocked out for testing. |
| virtual base::FilePath GetAppBundleById(const std::string& bundle_id) const; |
| - // Show the bundle we just generated in the Finder. |
| - virtual void RevealAppShimInFinder() const; |
| - |
| private: |
| FRIEND_TEST_ALL_PREFIXES(WebAppShortcutCreatorTest, DeleteShortcuts); |
| FRIEND_TEST_ALL_PREFIXES(WebAppShortcutCreatorTest, UpdateIcon); |