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

Side by Side Diff: chrome/browser/apps/shortcut_manager.h

Issue 1497193002: Remove all the ephemeral apps code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review, Devlin review. Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_APPS_SHORTCUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_
6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ 6 #define CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/scoped_observer.h" 9 #include "base/scoped_observer.h"
10 #include "chrome/browser/profiles/profile_info_cache_observer.h" 10 #include "chrome/browser/profiles/profile_info_cache_observer.h"
(...skipping 24 matching lines...) Expand all
35 ~AppShortcutManager() override; 35 ~AppShortcutManager() override;
36 36
37 // Updates all shortcuts if kAppShortcutsVersion in prefs is less than 37 // Updates all shortcuts if kAppShortcutsVersion in prefs is less than
38 // kCurrentAppShortcutsVersion. 38 // kCurrentAppShortcutsVersion.
39 void UpdateShortcutsForAllAppsIfNeeded(); 39 void UpdateShortcutsForAllAppsIfNeeded();
40 40
41 // extensions::ExtensionRegistryObserver. 41 // extensions::ExtensionRegistryObserver.
42 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context, 42 void OnExtensionWillBeInstalled(content::BrowserContext* browser_context,
43 const extensions::Extension* extension, 43 const extensions::Extension* extension,
44 bool is_update, 44 bool is_update,
45 bool from_ephemeral,
46 const std::string& old_name) override; 45 const std::string& old_name) override;
47 void OnExtensionUninstalled(content::BrowserContext* browser_context, 46 void OnExtensionUninstalled(content::BrowserContext* browser_context,
48 const extensions::Extension* extension, 47 const extensions::Extension* extension,
49 extensions::UninstallReason reason) override; 48 extensions::UninstallReason reason) override;
50 49
51 // ProfileInfoCacheObserver. 50 // ProfileInfoCacheObserver.
52 void OnProfileWillBeRemoved(const base::FilePath& profile_path) override; 51 void OnProfileWillBeRemoved(const base::FilePath& profile_path) override;
53 52
54 private: 53 private:
55 void DeleteApplicationShortcuts(const extensions::Extension* extension); 54 void DeleteApplicationShortcuts(const extensions::Extension* extension);
56 55
57 Profile* profile_; 56 Profile* profile_;
58 bool is_profile_info_cache_observer_; 57 bool is_profile_info_cache_observer_;
59 PrefService* prefs_; 58 PrefService* prefs_;
60 59
61 ScopedObserver<extensions::ExtensionRegistry, 60 ScopedObserver<extensions::ExtensionRegistry,
62 extensions::ExtensionRegistryObserver> 61 extensions::ExtensionRegistryObserver>
63 extension_registry_observer_; 62 extension_registry_observer_;
64 63
65 base::WeakPtrFactory<AppShortcutManager> weak_ptr_factory_; 64 base::WeakPtrFactory<AppShortcutManager> weak_ptr_factory_;
66 65
67 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager); 66 DISALLOW_COPY_AND_ASSIGN(AppShortcutManager);
68 }; 67 };
69 68
70 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_ 69 #endif // CHROME_BROWSER_APPS_SHORTCUT_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/apps/ephemeral_app_service_factory.cc ('k') | chrome/browser/apps/shortcut_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698