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

Unified Diff: chrome/browser/web_applications/web_app.h

Issue 263403002: Replace OnceOffCreateShortcuts with UpdateShortcutsForAllAppsIfNeeded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_applications/web_app.h
diff --git a/chrome/browser/web_applications/web_app.h b/chrome/browser/web_applications/web_app.h
index 9b2cef7bf83a67add897669b8d0d44797ca4c9b3..29e730a017be5f5bcf83590397c4bb87bd4d319c 100644
--- a/chrome/browser/web_applications/web_app.h
+++ b/chrome/browser/web_applications/web_app.h
@@ -122,6 +122,10 @@ void UpdateShortcutInfoAndIconForApp(const extensions::Extension* extension,
Profile* profile,
const ShortcutInfoCallback& callback);
+// Whether to create a shortcut for this type of extension.
+bool ShouldCreateShortcutFor(Profile* profile,
+ const extensions::Extension* extension);
+
// Gets the user data directory for given web app. The path for the directory is
// based on |extension_id|. If |extension_id| is empty then |url| is used
// to construct a unique ID.
@@ -172,6 +176,11 @@ void UpdateAllShortcuts(const base::string16& old_app_title,
Profile* profile,
const extensions::Extension* app);
+// Updates shortcuts for all apps in this profile. This is expected to be called
+// on the UI thread.
+void UpdateShortcutsForAllApps(Profile* profile,
+ const base::Closure& callback);
+
// Returns true if given url is a valid web app url.
bool IsValidUrl(const GURL& url);
« no previous file with comments | « chrome/browser/ui/app_list/app_list_service_impl.cc ('k') | chrome/browser/web_applications/web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698