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

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

Issue 2608013002: mash: Replace ShelfItemDelegate::CanPin with ShelfItem::pinned_by_policy. (Closed)
Patch Set: Fix test. Created 3 years, 11 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 567ad4e3f345703a4bc0b1141dd7e669a475eca6..cda8e1d8b64114c39a12438242ca1d16c34b2e05 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
@@ -226,11 +226,6 @@ ash::ShelfMenuModel* AppShortcutLauncherItemController::CreateApplicationMenu(
return new LauncherApplicationMenuItemModel(GetApplicationList(event_flags));
}
-bool AppShortcutLauncherItemController::CanPin() const {
- return GetPinnableForAppID(app_id(), launcher_controller()->profile()) ==
- AppListControllerDelegate::PIN_EDITABLE;
-}
-
content::WebContents* AppShortcutLauncherItemController::GetLRUApplication() {
URLPattern refocus_pattern(URLPattern::SCHEME_ALL);
refocus_pattern.SetMatchAllURLs(true);

Powered by Google App Engine
This is Rietveld 408576698