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

Side by Side Diff: chrome/browser/extensions/app_shortcut_manager.h

Issue 12208146: [win] Remove app launcher install calls from app shortcut manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/app_shortcut_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.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 10 matching lines...) Expand all
21 explicit AppShortcutManager(Profile* profile); 21 explicit AppShortcutManager(Profile* profile);
22 22
23 virtual ~AppShortcutManager(); 23 virtual ~AppShortcutManager();
24 24
25 // content::NotificationObserver 25 // content::NotificationObserver
26 virtual void Observe(int type, 26 virtual void Observe(int type,
27 const content::NotificationSource& source, 27 const content::NotificationSource& source,
28 const content::NotificationDetails& details) OVERRIDE; 28 const content::NotificationDetails& details) OVERRIDE;
29 29
30 private: 30 private:
31 void UpdateApplicationShortcuts(const Extension* extension);
32
33 #if defined(OS_WIN)
34 void OnAppHostInstallationComplete(scoped_refptr<Extension> extension,
35 bool app_host_install_success);
36 #endif
37
38 void DeleteApplicationShortcuts(const Extension* extension); 31 void DeleteApplicationShortcuts(const Extension* extension);
39 32
40 content::NotificationRegistrar registrar_; 33 content::NotificationRegistrar registrar_;
41 Profile* profile_; 34 Profile* profile_;
42 35
43 // Fields used when installing application shortcuts. 36 // Fields used when installing application shortcuts.
44 base::WeakPtrFactory<AppShortcutManager> weak_factory_; 37 base::WeakPtrFactory<AppShortcutManager> weak_factory_;
45 38
46 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); 39 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager);
47 }; 40 };
48 41
49 } // namespace extensions 42 } // namespace extensions
50 43
51 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ 44 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/app_shortcut_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698