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

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: cleanup and update 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..6b957f3b1dc85070630e193264de4c9ab50e995d 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,19 @@ 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);
+
+// Removes information about pin position from sync model for the app.
+void RemovePinPosition(Profile* profile, const std::string& app_id);
+
+// Updates information about pin position in sync model for the app |app_id|.
+// |app_id_before| optionally specifies an app that exists right before the
+// target app. |app_id_after| optionally specifies an app that exists right
+// after the target app.
+void SetPinPosition(Profile* profile,
+ const std::string& app_id,
+ const std::string& app_id_before,
+ const std::string& app_id_after);
stevenjb 2016/06/10 18:00:41 These functions should really all be in a separate
khmel 2016/06/10 22:08:11 Done.
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698