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

Unified Diff: chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc

Issue 1919593003: arc: Prevent showing Opt-in UI when it is not expected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TODO added Created 4 years, 8 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/app_shortcut_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
index 7b13f69e7391ab70d035c057a02f7cb1ed670976..2e3ee3049a3751d2f12b1e34a5c90f80740ba9ec 100644
--- a/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
@@ -213,7 +213,8 @@ bool AppShortcutLauncherItemController::IsDraggable() {
}
bool AppShortcutLauncherItemController::CanPin() const {
- return launcher_controller()->CanPin(app_id());
+ return launcher_controller()->GetPinnable(app_id()) ==
+ AppListControllerDelegate::PIN_EDITABLE;
}
bool AppShortcutLauncherItemController::ShouldShowTooltip() {

Powered by Google App Engine
This is Rietveld 408576698