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

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

Issue 265163006: [Mac] Rebuild app shims when they fail to dyload Chrome Framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and rebase Created 6 years, 7 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_mac.h
diff --git a/chrome/browser/web_applications/web_app_mac.h b/chrome/browser/web_applications/web_app_mac.h
index c96fdad44b03fd6b3966fe09ec8d41673f144b8a..8c65ecb6a46296f5c9c844f3f631a3a4b69e4586 100644
--- a/chrome/browser/web_applications/web_app_mac.h
+++ b/chrome/browser/web_applications/web_app_mac.h
@@ -14,6 +14,10 @@
#include "chrome/browser/web_applications/web_app.h"
#include "chrome/common/extensions/file_handler_info.h"
+namespace base {
+class CommandLine;
+}
+
namespace web_app {
// Returns the full path of the .app shim that would be created by
@@ -24,6 +28,9 @@ base::FilePath GetAppInstallPath(
// If necessary, launch the shortcut for an app.
void MaybeLaunchShortcut(const web_app::ShortcutInfo& shortcut_info);
+// Rebuild the shortcut and relaunch it.
+bool MaybeRebuildShortcut(const base::CommandLine& command_line);
+
// 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 {

Powered by Google App Engine
This is Rietveld 408576698