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

Issue 2684853002: Discard pinning an app with non-empty launcher id. (Closed)

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

Description

Discard pinning an app with non-empty launcher id. Currently we don't support persisting Chrome shelf pin for app with custom launcher id. We should discard the code that stores pins for such apps in app list sync service which is not compatible with its design. TEST=tests passed and manually on device various pin scenarios BUG=689772 Review-Url: https://codereview.chromium.org/2684853002 Cr-Commit-Position: refs/heads/master@{#449126} Committed: https://chromium.googlesource.com/chromium/src/+/613cdf8eeeaac4830b55c4b55b4377269faa2e35

Patch Set 1 #

Total comments: 2

Patch Set 2 : clean up #

Total comments: 2

Patch Set 3 : reduce discard level #

Total comments: 6

Patch Set 4 : few nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -145 lines) Patch
M chrome/browser/ui/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/ash/app_launcher_id.h View 1 1 chunk +47 lines, -0 lines 2 comments Download
A chrome/browser/ui/ash/app_launcher_id.cc View 1 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.h View 1 2 3 4 chunks +5 lines, -42 lines 0 comments Download
M chrome/browser/ui/ash/chrome_launcher_prefs.cc View 1 2 3 20 chunks +97 lines, -102 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_browsertest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_mus.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
khmel
Hi Steven, As we discussed this discard saving pins with launcher id. PTAL https://codereview.chromium.org/2684853002/diff/1/chrome/browser/ui/BUILD.gn File ...
3 years, 10 months ago (2017-02-08 16:43:43 UTC) #10
stevenjb
cc:rafael.antognolli@intel.com
3 years, 10 months ago (2017-02-08 18:07:28 UTC) #11
antognolli
On 2017/02/08 18:07:28, stevenjb wrote: > cc:rafael.antognolli@intel.com Change looks good to me.
3 years, 10 months ago (2017-02-08 18:17:27 UTC) #12
stevenjb
Thanks for separating out app_launcher_id.cc/h. https://codereview.chromium.org/2684853002/diff/20001/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/2684853002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode1083 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:1083: } Long term I ...
3 years, 10 months ago (2017-02-08 18:19:03 UTC) #13
khmel
PTAL https://codereview.chromium.org/2684853002/diff/20001/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/2684853002/diff/20001/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode1083 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:1083: } On 2017/02/08 18:19:03, stevenjb wrote: > Long ...
3 years, 10 months ago (2017-02-08 20:08:43 UTC) #14
stevenjb
lgtm w/ nits https://codereview.chromium.org/2684853002/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2684853002/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode700 chrome/browser/ui/ash/chrome_launcher_prefs.cc:700: VLOG(2) << "Unpinning app '" << ...
3 years, 10 months ago (2017-02-08 20:32:37 UTC) #15
khmel
Thank you for review! https://codereview.chromium.org/2684853002/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc File chrome/browser/ui/ash/chrome_launcher_prefs.cc (right): https://codereview.chromium.org/2684853002/diff/40001/chrome/browser/ui/ash/chrome_launcher_prefs.cc#newcode700 chrome/browser/ui/ash/chrome_launcher_prefs.cc:700: VLOG(2) << "Unpinning app '" ...
3 years, 10 months ago (2017-02-08 21:20:40 UTC) #16
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/2684853002/60001
3 years, 10 months ago (2017-02-08 21:21:48 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/613cdf8eeeaac4830b55c4b55b4377269faa2e35
3 years, 10 months ago (2017-02-08 23:08:50 UTC) #22
James Cook
+msw FYI https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h File chrome/browser/ui/ash/app_launcher_id.h (right): https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h#newcode11 chrome/browser/ui/ash/app_launcher_id.h:11: namespace launcher { Is there any particular ...
3 years, 10 months ago (2017-02-09 01:26:53 UTC) #24
khmel
https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h File chrome/browser/ui/ash/app_launcher_id.h (right): https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h#newcode11 chrome/browser/ui/ash/app_launcher_id.h:11: namespace launcher { On 2017/02/09 01:26:53, James Cook wrote: ...
3 years, 10 months ago (2017-02-09 01:30:22 UTC) #25
James Cook
On 2017/02/09 01:30:22, khmel wrote: > https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h > File chrome/browser/ui/ash/app_launcher_id.h (right): > > https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/app_launcher_id.h#newcode11 > ...
3 years, 10 months ago (2017-02-09 01:38:28 UTC) #26
khmel
3 years, 10 months ago (2017-02-09 01:52:22 UTC) #27
Message was sent while issue was closed.
On 2017/02/09 01:38:28, James Cook wrote:
> On 2017/02/09 01:30:22, khmel wrote:
> >
>
https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/a...
> > File chrome/browser/ui/ash/app_launcher_id.h (right):
> > 
> >
>
https://codereview.chromium.org/2684853002/diff/60001/chrome/browser/ui/ash/a...
> > chrome/browser/ui/ash/app_launcher_id.h:11: namespace launcher {
> > On 2017/02/09 01:26:53, James Cook wrote:
> > > Is there any particular reason you put this in "namespace launcher"?  That
> > > namespace is only used in ChromeLauncherPrefs and probably shouldn't exist
> at
> > > all. Taking this out of namespace launcher would make some identifiers
> > shorter.
> > 
> > There is no particular reason for this (kept from previous impl). (IIUC this
> > change is due rebase)
> 
> Maybe either you or msw@ could take it out of the namespace?
> 
> He's got an active CL that touches a bunch of call sites that use it,
> https://codereview.chromium.org/2684723003/

I will take care

Powered by Google App Engine
This is Rietveld 408576698