|
|
mash: Replace ShelfItemDelegate::CanPin with ShelfItem::pinned_by_policy.
Remove CanPin (ash shelf item delegation back to chrome).
Add a pinned_by_policy flag on the ShelfItem struct itself instead.
Update flags in ChromeLauncherControllerImpl::UpdatePolicyPinnedAppsFromPrefs.
(via UpdateAppLaunchersFromPref, called on changes to prefs::kPolicyPinnedLauncherApps)
Inline ChromeLauncherController::IsPinnable in LauncherContextMenu.
TODO: Revise the policy-pinning code to make this more efficient.
BUG= 557406
TEST=No changes to policy-pinned app shelf items.
R=jamescook@chromium.org
Committed: https://crrev.com/f4a69e95680a3af7aa01266c3036441ee795703b
Cr-Commit-Position: refs/heads/master@{#441537}
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+41 lines, -102 lines) |
Patch |
 |
M |
ash/common/shelf/app_list_shelf_item_delegate.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/common/shelf/app_list_shelf_item_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_controller.cc
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_item_delegate.h
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_item_types.h
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_view.cc
|
View
|
1
2
|
1 chunk |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_window_watcher_item_delegate.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/common/shelf/shelf_window_watcher_item_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/common/test/test_shelf_item_delegate.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/common/test/test_shelf_item_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/shell/window_watcher_shelf_item_delegate.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/shell/window_watcher_shelf_item_delegate.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc
|
View
|
1
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc
|
View
|
1
|
2 chunks |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/arc_app_deferred_launcher_item_controller.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc
|
View
|
1
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller.h
|
View
|
1
2
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h
|
View
|
1
2
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc
|
View
|
1
2
|
2 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc
|
View
|
1
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.h
|
View
|
1
2
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/launcher_context_menu.cc
|
View
|
1
2
|
5 chunks |
+5 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc
|
View
|
1
2
3
|
4 chunks |
+13 lines, -10 lines |
0 comments
|
Download
|
Total messages: 25 (15 generated)
|