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

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

Issue 2769323002: mash: Update shelf pin prefs in ShelfModelObserver overrides. (Closed)
Patch Set: Cleanup; fix tests by ignoring initial browser shortcut pin position syncing. Created 3 years, 9 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 95de7dce5a6abb9900406e928c3c5ac8ef62339e..7de02198a6eddf6ed94da566ec440dede22228b6 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
@@ -7,6 +7,7 @@
#include <list>
#include <memory>
+#include <set>
#include "ash/common/shelf/shelf_delegate.h"
#include "ash/common/shelf/shelf_model_observer.h"
@@ -142,6 +143,8 @@ class ChromeLauncherControllerImpl
const std::string& app_id) override;
void OnAppUninstalledPrepared(content::BrowserContext* browser_context,
const std::string& app_id) override;
+ void OnAppDisabling(const std::string& app_id) override;
+ void OnAppDisabled(const std::string& app_id) override;
protected:
// ChromeLauncherController:
@@ -309,6 +312,9 @@ class ChromeLauncherControllerImpl
typedef std::map<std::string, RunningAppListIds> RunningAppListIdMap;
RunningAppListIdMap last_used_running_application_order_;
+ // Ids of apps being disabled; do not remove pin positions on item removal.
+ std::set<std::string> keep_pin_positions_;
James Cook 2017/03/29 14:28:02 Could this be handled with ignore_persistent_pinne
khmel 2017/03/29 15:28:53 It seems that based on logic we don't have situati
msw 2017/03/29 21:34:17 I switched to using a refactored sync flag, which
+
base::WeakPtrFactory<ChromeLauncherControllerImpl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ChromeLauncherControllerImpl);

Powered by Google App Engine
This is Rietveld 408576698