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

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: chrome_mash_shelf_controller.cc update due namespace renaming 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 7aff5436307b7cb405e909269baf182ed0eee2af..7f08d98574d7f8c998efaff21b05e59d40ccfcef 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.h
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.h
@@ -30,6 +30,7 @@ class PrefRegistrySyncable;
}
namespace ash {
+namespace launcher {
// Path within the dictionary entries in the prefs::kPinnedLauncherApps list
// specifying the extension ID of the app to be pinned by that entry.
@@ -71,7 +72,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);
// Used to propagate remote preferences to local during the first run.
class ChromeLauncherPrefsObserver
@@ -98,6 +111,7 @@ class ChromeLauncherPrefsObserver
DISALLOW_COPY_AND_ASSIGN(ChromeLauncherPrefsObserver);
};
+} // namespace launcher
} // namespace ash
#endif // CHROME_BROWSER_UI_ASH_CHROME_LAUNCHER_PREFS_H_
« no previous file with comments | « chrome/browser/ui/app_list/app_list_syncable_service_factory.cc ('k') | chrome/browser/ui/ash/chrome_launcher_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698