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

Side by Side 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: Now installing App Host in AppShortcutManager, instead of CrxInstaller / UnpackedInstaller. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
7 7
8 #include "chrome/browser/extensions/image_loading_tracker.h" 8 #include "chrome/browser/extensions/image_loading_tracker.h"
9 #include "chrome/browser/shell_integration.h" 9 #include "chrome/browser/shell_integration.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 18 matching lines...) Expand all
29 const std::string& extension_id, 29 const std::string& extension_id,
30 int index) OVERRIDE; 30 int index) OVERRIDE;
31 31
32 // content::NotificationObserver 32 // content::NotificationObserver
33 virtual void Observe(int type, 33 virtual void Observe(int type,
34 const content::NotificationSource& source, 34 const content::NotificationSource& source,
35 const content::NotificationDetails& details) OVERRIDE; 35 const content::NotificationDetails& details) OVERRIDE;
36 36
37 private: 37 private:
38 void UpdateApplicationShortcuts(const Extension* extension); 38 void UpdateApplicationShortcuts(const Extension* extension);
39 void OnAppHostInstallationComplete(const Extension* extension,
40 bool app_host_install_success);
39 void DeleteApplicationShortcuts(const Extension* extension); 41 void DeleteApplicationShortcuts(const Extension* extension);
40 42
41 content::NotificationRegistrar registrar_; 43 content::NotificationRegistrar registrar_;
42 Profile* profile_; 44 Profile* profile_;
43 45
44 // Fields used when installing application shortcuts. 46 // Fields used when installing application shortcuts.
45 ShellIntegration::ShortcutInfo shortcut_info_; 47 ShellIntegration::ShortcutInfo shortcut_info_;
46 ImageLoadingTracker tracker_; 48 ImageLoadingTracker tracker_;
47 49
48 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); 50 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager);
49 }; 51 };
50 52
51 } // namespace extensions 53 } // namespace extensions
52 54
53 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ 55 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698