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

Issue 2769323002: mash: Update shelf pin prefs in ShelfModelObserver overrides. (Closed)

Created:
3 years, 9 months ago by msw
Modified:
3 years, 8 months ago
Reviewers:
James Cook, khmel
CC:
chromium-reviews, kalyank, sadrul, sky
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

mash: Update shelf pin prefs in ShelfModelObserver overrides. Do not update prefs in ChromeLauncherController's ShelfDelegate overrides. Instead, update prefs in CLC's ShelfModelObserver overrides. This will help move ShelfDelegate responsibilities out of Chrome. Refactor do-not-sync flag for internal and ARC disabling support. Do not sync the initial browser shortcut pin position (see comment). Extract ItemTypeIsPinned helper for ChromeLauncherController. Limit the crbug.com/654622 workaround to affected test fixtures. (this workaround breaks some other fixtures like ArcMultiUser) BUG=557406 TEST=Automated; no shelf item behavior changes. R=khmel@chromium.org,jamescook@chromium.org Review-Url: https://codereview.chromium.org/2769323002 Cr-Commit-Position: refs/heads/master@{#460658} Committed: https://chromium.googlesource.com/chromium/src/+/ac32fbee0938078f84eea9524c1e6d99e1949f94

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Debugging ARC... #

Patch Set 4 : Add a hack for ARC behavior. #

Patch Set 5 : Respect |ignore_persist_pinned_state_change_| and cleanup. #

Patch Set 6 : Debugging... #

Patch Set 7 : Rebase on https://codereview.chromium.org/2784613002 #

Patch Set 8 : Cleanup; fix tests by ignoring initial browser shortcut pin position syncing. #

Total comments: 17

Patch Set 9 : Address comments; reduce the reach of our crbug.com/654622 workaround. #

Total comments: 10

Patch Set 10 : Address comments. #

Patch Set 11 : Use ScopedPinSyncDisabler name suggestion. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -42 lines) Patch
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +61 lines, -36 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_arc_app_updater.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (34 generated)
msw
Hey Scott and Yury, please take a look; thanks! https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc (right): https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode934 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:934: ...
3 years, 8 months ago (2017-03-29 01:29:56 UTC) #20
sky
I'm a bit at a loss for this one. Would James be a better reviewer ...
3 years, 8 months ago (2017-03-29 03:09:15 UTC) #22
msw
On 2017/03/29 03:09:15, sky wrote: > I'm a bit at a loss for this one. ...
3 years, 8 months ago (2017-03-29 03:33:57 UTC) #23
James Cook
How's the test coverage for the pin/unpin stuff? https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc (right): https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode81 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:81: #include ...
3 years, 8 months ago (2017-03-29 14:28:03 UTC) #24
khmel
https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h (right): https://codereview.chromium.org/2769323002/diff/180001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h#newcode316 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.h:316: std::set<std::string> keep_pin_positions_; On 2017/03/29 14:28:02, James Cook wrote: > ...
3 years, 8 months ago (2017-03-29 15:28:53 UTC) #25
msw
Comments addressed; please take another look, thanks! The code and CL are simpler thanks to ...
3 years, 8 months ago (2017-03-29 21:34:17 UTC) #32
khmel
That version is much better, thanks! lgtm https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc (left): https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#oldcode1376 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:1376: LOG(ERROR) << ...
3 years, 8 months ago (2017-03-29 21:54:11 UTC) #33
msw
https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc (left): https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#oldcode1376 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:1376: LOG(ERROR) << "Unexpected removal of shelf item, id: " ...
3 years, 8 months ago (2017-03-29 22:26:06 UTC) #36
James Cook
Code looks good, but one clarity comment and one question about tests. https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller.h ...
3 years, 8 months ago (2017-03-29 23:23:56 UTC) #37
msw
Please take another look; thanks! https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller.h (right): https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h#newcode239 chrome/browser/ui/ash/launcher/chrome_launcher_controller.h:239: std::unique_ptr<base::AutoReset<bool>> DoNotSyncPinChanges(); On 2017/03/29 ...
3 years, 8 months ago (2017-03-30 00:33:29 UTC) #38
James Cook
LGTM with a name suggestion Thanks for fighting through this. https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller.h (right): https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h#newcode239 ...
3 years, 8 months ago (2017-03-30 02:05:28 UTC) #41
msw
Thanks! Landing now. https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h File chrome/browser/ui/ash/launcher/chrome_launcher_controller.h (right): https://codereview.chromium.org/2769323002/diff/200001/chrome/browser/ui/ash/launcher/chrome_launcher_controller.h#newcode239 chrome/browser/ui/ash/launcher/chrome_launcher_controller.h:239: std::unique_ptr<base::AutoReset<bool>> DoNotSyncPinChanges(); On 2017/03/30 02:05:28, James ...
3 years, 8 months ago (2017-03-30 02:22:12 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2769323002/240001
3 years, 8 months ago (2017-03-30 02:22:55 UTC) #45
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 04:06:10 UTC) #48
Message was sent while issue was closed.
Committed patchset #11 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/ac32fbee0938078f84eea9524c1e...

Powered by Google App Engine
This is Rietveld 408576698