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

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: Remove CallForProfileAndAppId, change Mac implementation to Update instead of Create 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
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..edef22647cbfd9e0cea013a47d968e3ac18daff5 100644
--- a/chrome/browser/web_applications/web_app.h
+++ b/chrome/browser/web_applications/web_app.h
@@ -172,6 +172,9 @@ void UpdateAllShortcuts(const base::string16& old_app_title,
Profile* profile,
const extensions::Extension* app);
+// Updates shortcuts for all apps in this profile.
+void UpdateShortcutsForAllApps(Profile* profile);
+
// Returns true if given url is a valid web app url.
bool IsValidUrl(const GURL& url);
@@ -238,6 +241,10 @@ void UpdatePlatformShortcuts(
// This is executed on the FILE thread.
void DeleteAllShortcutsForProfile(const base::FilePath& profile_path);
+// Checks all shortcuts for a profile and deletes/updates them as necessary.
+void UpdateShortcutsForAllAppsForProfile(const base::FilePath& profile_path,
+ const std::set<std::string>& app_ids);
+
// Sanitizes |name| and returns a version of it that is safe to use as an
// on-disk file name .
base::FilePath GetSanitizedFileName(const base::string16& name);

Powered by Google App Engine
This is Rietveld 408576698