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

Unified Diff: chrome/browser/extensions/app_shortcut_manager.h

Issue 11054006: Make application shortcuts point to app_host.exe, install App Host during app installation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding app_host_installer_win.*; using WeakPtrFactory in AppShortcutManager. Created 8 years, 1 month 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/extensions/app_shortcut_manager.h
diff --git a/chrome/browser/extensions/app_shortcut_manager.h b/chrome/browser/extensions/app_shortcut_manager.h
index bc78b24e953673bb06f1e8cf1804ce81aeaf0016..2993213640cae83b740752a4440fbba832b0f0a2 100644
--- a/chrome/browser/extensions/app_shortcut_manager.h
+++ b/chrome/browser/extensions/app_shortcut_manager.h
@@ -5,6 +5,7 @@
#ifndef CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
#define CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
+#include "base/memory/weak_ptr.h"
#include "chrome/browser/extensions/image_loading_tracker.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/common/extensions/extension.h"
@@ -36,6 +37,12 @@ class AppShortcutManager : public ImageLoadingTracker::Observer,
private:
void UpdateApplicationShortcuts(const Extension* extension);
+
+#if defined(OS_WIN)
+ void OnAppHostInstallationComplete(const Extension* extension,
+ bool app_host_install_success);
+#endif
+
void DeleteApplicationShortcuts(const Extension* extension);
content::NotificationRegistrar registrar_;
@@ -45,6 +52,8 @@ class AppShortcutManager : public ImageLoadingTracker::Observer,
ShellIntegration::ShortcutInfo shortcut_info_;
ImageLoadingTracker tracker_;
+ base::WeakPtrFactory<AppShortcutManager> weak_factory_;
+
DISALLOW_COPY_AND_ASSIGN(AppShortcutManager);
};

Powered by Google App Engine
This is Rietveld 408576698