Chromium Code Reviews| Index: chrome/browser/web_applications/web_app.h |
| diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h |
| index 0ddf31da85b6964b81eeae94f426586ceedc6c4e..406f4eabd2b1ba95718b9e8784b25d4fc87bb3d6 100644 |
| --- a/chrome/browser/web_applications/web_app.h |
| +++ b/chrome/browser/web_applications/web_app.h |
| @@ -8,6 +8,7 @@ |
| #include <string> |
| #include <vector> |
| +#include "base/callback.h" |
|
tapted
2013/05/21 08:33:25
this can go
jackhou1
2013/05/28 06:50:33
Done.
|
| #include "base/files/file_path.h" |
| #include "build/build_config.h" |
| #include "chrome/browser/shell_integration.h" |
| @@ -21,6 +22,8 @@ namespace gfx { |
| class ImageFamily; |
| } |
| +class Profile; |
| + |
| namespace web_app { |
| // Gets the user data directory for given web app. The path for the directory is |
| @@ -95,6 +98,16 @@ std::string GetWMClassFromAppName(std::string app_name); |
| // Gets the name of the Chrome Apps menu folder in which to place app shortcuts. |
| string16 GetAppShortcutsSubdirName(); |
| + |
| +// If necessary, launch the shortcut for an app. |
| +#if defined(OS_MACOSX) |
|
tapted
2013/05/21 08:33:25
I think it will be a bit cleaner to just have the
jackhou1
2013/05/28 06:50:33
Done.
|
| +void MaybeLaunchShortcut(Profile* profile, |
| + const extensions::Extension* extension); |
| +#else |
| +void MaybeLaunchShortcut(Profile* profile, |
| + const extensions::Extension* extension) {} |
| +#endif |
| + |
| namespace internals { |
| #if defined(OS_WIN) |