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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h

Issue 2316273004: [Merge-M53] arc: Don't sync app list change caused by Arc opt out. (Closed)
Patch Set: Created 4 years, 3 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/launcher/chrome_launcher_controller_impl.h
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
index ba8cc6fb5ff196e45042a869a6122e38ec33a28b..4d287e3a63950cfe4d506c844472841826d42a8c 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
@@ -218,7 +218,7 @@ class ChromeLauncherControllerImpl
// Internal helpers for pinning and unpinning that handle both
// client-triggered and internal pinning operations.
void DoPinAppWithID(const std::string& app_id);
- void DoUnpinAppWithID(const std::string& app_id);
+ void DoUnpinAppWithID(const std::string& app_id, bool update_prefs);
// Pin a running app with |shelf_id| internally to |index|. It returns
// the index where the item was pinned.
@@ -318,6 +318,10 @@ class ChromeLauncherControllerImpl
// app_list::AppListSyncableService::Observer:
void OnSyncModelUpdated() override;
+ // Unpins shelf item and optionally updates pin prefs when |update_prefs| is
+ // set to true.
+ void UnpinAndUpdatePrefs(ash::ShelfID id, bool update_prefs);
+
ash::ShelfModel* model_;
ash::ShelfItemDelegateManager* item_delegate_manager_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698