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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_list_prefs.h

Issue 2860243002: arc: Fix removing shortcuts on package update. (Closed)
Patch Set: Created 3 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/ui/app_list/arc/arc_app_list_prefs.h
diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
index 3cf5b37ed66506b04a2ba67bb537982a9babfbbe..2170d9f8451560a5e34a297f47f657731da32f9c 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
+++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.h
@@ -239,6 +239,8 @@ class ArcAppListPrefs
return package_list_initial_refreshed_;
}
+ // Returns set of ARC apps for provided package name, not including shortcuts,
+ // associated with this package.
std::unordered_set<std::string> GetAppsForPackage(
khmel 2017/05/04 22:49:04 There are 2 public usages of this function. Howeve
const std::string& package_name) const;
@@ -329,6 +331,10 @@ class ArcAppListPrefs
void DisableAllApps();
void RemoveAllApps();
std::vector<std::string> GetAppIdsNoArcEnabledCheck() const;
+ std::unordered_set<std::string> GetAppsAndShortcutsForPackage(
+ const std::string& package_name,
+ bool include_shortcuts) const;
+
// Enumerates apps from preferences and notifies listeners about available
// apps while ARC is not started yet. All apps in this case have disabled
// state.

Powered by Google App Engine
This is Rietveld 408576698