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

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

Issue 10837034: Remove packaged app Windows shortcuts when app is uninstalled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments Created 8 years, 4 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
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 29
30 // content::NotificationObserver 30 // content::NotificationObserver
31 virtual void Observe(int type, 31 virtual void Observe(int type,
32 const content::NotificationSource& source, 32 const content::NotificationSource& source,
33 const content::NotificationDetails& details) OVERRIDE; 33 const content::NotificationDetails& details) OVERRIDE;
34 34
35 static void SetShortcutCreationDisabledForTesting(bool disabled); 35 static void SetShortcutCreationDisabledForTesting(bool disabled);
36 private: 36 private:
37 // Install the shortcuts for an application. 37 // Install the shortcuts for an application.
38 void InstallApplicationShortcuts(const extensions::Extension* extension); 38 void InstallApplicationShortcuts(const extensions::Extension* extension);
39 void DeleteApplicationShortcuts(const extensions::Extension* extension);
39 40
40 content::NotificationRegistrar registrar_; 41 content::NotificationRegistrar registrar_;
41 Profile* profile_; 42 Profile* profile_;
42 43
43 // Fields used when installing application shortcuts. 44 // Fields used when installing application shortcuts.
44 ShellIntegration::ShortcutInfo shortcut_info_; 45 ShellIntegration::ShortcutInfo shortcut_info_;
45 ImageLoadingTracker tracker_; 46 ImageLoadingTracker tracker_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); 48 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager);
48 }; 49 };
49 50
50 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_ 51 #endif // CHROME_BROWSER_EXTENSIONS_APP_SHORTCUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698