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

Issue 2628023002: Fix cannot select and activate pinned v2app through launcher context menu (Closed)

Created:
3 years, 11 months ago by Qiang(Joe) Xu
Modified:
3 years, 11 months ago
Reviewers:
msw, James Cook
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix cannot select and activate pinned v2app through launcher context menu Changes: Bug happens when v2app like Files is pinned, the ash::ShelfItemType for this case is TYPE_APP_SHORTCUT. BUG=675032 TEST=emulator test saw bug fixed Review-Url: https://codereview.chromium.org/2628023002 Cr-Commit-Position: refs/heads/master@{#443078} Committed: https://chromium.googlesource.com/chromium/src/+/2ad11d9a384d881c1ea962e4bcc6a269b7781259

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : AsAppWindowLauncherItemController #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_window_launcher_item_controller.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
Qiang(Joe) Xu
Hi James, ptal, thanks!
3 years, 11 months ago (2017-01-11 19:19:28 UTC) #5
James Cook
LGTM but please have msw@ look also, since this might have been caused by his ...
3 years, 11 months ago (2017-01-11 19:29:23 UTC) #7
msw
https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:654: static_cast<AppWindowLauncherItemController*>(controller); It is really safe to static-cast the controller ...
3 years, 11 months ago (2017-01-11 20:01:55 UTC) #10
msw
Please also check my latest comment on the bug. Perhaps the defect is just in ...
3 years, 11 months ago (2017-01-11 20:44:14 UTC) #11
Qiang(Joe) Xu
https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:654: static_cast<AppWindowLauncherItemController*>(controller); On 2017/01/11 20:01:55, msw wrote: > It is ...
3 years, 11 months ago (2017-01-11 21:09:14 UTC) #12
msw
On 2017/01/11 21:09:14, Qiang(Joe) Xu wrote: > https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 ...
3 years, 11 months ago (2017-01-11 21:19:24 UTC) #13
msw
Please take a look at my analysis and lmk what you think. https://codereview.chromium.org/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc ...
3 years, 11 months ago (2017-01-11 21:54:45 UTC) #14
Qiang(Joe) Xu
https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:654: static_cast<AppWindowLauncherItemController*>(controller); On 2017/01/11 21:54:44, msw wrote: > On 2017/01/11 ...
3 years, 11 months ago (2017-01-11 22:34:21 UTC) #15
msw
lgtm with a nit (comment or enforcement) https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:654: static_cast<AppWindowLauncherItemController*>(controller); On ...
3 years, 11 months ago (2017-01-11 22:52:26 UTC) #16
James Cook
https://codereview.chromium.org/2628023002/diff/1/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/2628023002/diff/1/chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc#newcode654 chrome/browser/ui/ash/launcher/chrome_launcher_controller_impl.cc:654: static_cast<AppWindowLauncherItemController*>(controller); On 2017/01/11 22:34:21, Qiang(Joe) Xu wrote: > On ...
3 years, 11 months ago (2017-01-11 22:55:24 UTC) #17
James Cook
Ah, msw beat me to it. I like his suggestions.
3 years, 11 months ago (2017-01-11 22:56:46 UTC) #18
Qiang(Joe) Xu
Hi all, please reexamine this CL based on msw@'s suggestion, thanks!
3 years, 11 months ago (2017-01-11 23:40:39 UTC) #22
msw
lgtm
3 years, 11 months ago (2017-01-11 23:42:59 UTC) #23
James Cook
LGTM
3 years, 11 months ago (2017-01-12 00:09:59 UTC) #26
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/2628023002/60001
3 years, 11 months ago (2017-01-12 00:12:37 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 00:25:36 UTC) #31
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/2ad11d9a384d881c1ea962e4bcc6...

Powered by Google App Engine
This is Rietveld 408576698