Chromium Code Reviews
Descriptionmash: Refactor ChromeLauncherController's ShelfDelegate code.
Simplify Chrome's ShelfDelegate code and rely on ShelfModel more.
(should help extract ShelfDelegate functionality from Chrome)
Make similar changes to TestShelfDelegate (rely on ShelfModel).
Remove marginally useful ShelfDelegate::HasShelfIDToAppIDMapping.
Inline Unpin, Pin, DoPinAppWithID, and DoUnpinAppWithID helper functions.
Inline TogglePinned functionality in LauncherContextMenu.
Rename UnpinAndUpdatePrefs->UnpinShelfItemInternal, nix pref changes.
(inline pref changes in PinAppWithID and UnpinAppWithID for now)
BUG=557406
TEST=Automated tests pass; no Chrome OS shelf item behavior changes.
R=jamescook@chromium.org
Review-Url: https://codereview.chromium.org/2771663002
Cr-Commit-Position: refs/heads/master@{#459175}
Committed: https://chromium.googlesource.com/chromium/src/+/bedb0ae2fde426fac9960793663e674d4fe26637
Patch Set 1 #Patch Set 2 : Inline TogglePinned; fixes and cleanup. #Patch Set 3 : Sync and rebase. #Patch Set 4 : Fix MENU_PIN switch statement. #Patch Set 5 : Make TestShelfDelegate work like Chrome; fix browser test. #Patch Set 6 : Revise uma logic; make TestShelfDelegate set [un]pinned item types. #
Total comments: 14
Patch Set 7 : Address comments. #Messages
Total messages: 34 (28 generated)
|