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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.h

Issue 2055553004: arc: Support pinned apps across Arc-enabled and Arc-disabled platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/ash/chrome_launcher_prefs.h
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.h b/chrome/browser/ui/ash/chrome_launcher_prefs.h
index 38786144c1cbfc804028d74452e0d42d3b2a26ad..9921b01d7ed4e9b454cb2c17fcd90b327dd20c56 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.h
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.h
@@ -12,6 +12,7 @@
class LauncherControllerHelper;
class PrefService;
+class Profile;
namespace base {
class DictionaryValue;
@@ -63,7 +64,14 @@ void SetShelfAlignmentPref(PrefService* prefs,
// Get the list of pinned apps from preferences.
std::vector<std::string> GetPinnedAppsFromPrefs(
const PrefService* prefs,
- const LauncherControllerHelper* helper);
+ LauncherControllerHelper* helper);
+
+void RemovePinPosition(Profile* profile, const std::string& app_id);
+
+void SetPinPosition(Profile* profile,
+ const std::string& app_id,
+ const std::string& app_id_before,
+ const std::string& app_id_after);
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698