Chromium Code Reviews| 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 |