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

Unified Diff: chrome/browser/ui/ash/launcher/app_window_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_window_launcher_item_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
index 34d9e9460ebc47a07c7fa0478905091faef40248..6601b171b6e0feaa72b8929f598b510310c479dc 100644
--- a/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
+++ b/chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
@@ -146,7 +146,8 @@ bool AppWindowLauncherItemController::IsDraggable() {
}
bool AppWindowLauncherItemController::CanPin() const {
- return launcher_controller()->CanPin(app_id());
+ return launcher_controller()->GetPinnable(app_id()) ==
+ AppListControllerDelegate::PIN_EDITABLE;
}
bool AppWindowLauncherItemController::ShouldShowTooltip() {

Powered by Google App Engine
This is Rietveld 408576698