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

Issue 25823002: Refactor LauncherItemController and LauncherItemDelegate (Closed)

Created:
7 years, 2 months ago by simonhong_
Modified:
7 years, 2 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org, hyojun.im_lge.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Attempt 2: Refactor LauncherItemController and LauncherItemDelegate Previous CL was reverted (https://codereview.chromium.org/23606016/) because LauncherItemDelegateManager holds destoryed LauncherModel pointer (in win7_aura trybot). To handle this, destroy LauncherItemDelegateManager and recreates a new one with new LauncherModel. Original description. * LauncherItemController subclasses LauncherItemDelegate * Register/Unregister when LauncherItemDelegate is created/removed * LauncherItemDelegateManager handles LauncherItemDelegate by LauncherID * LauncherItemDelegateManager take ownership of all LauncherItemDelegate R=sky@chromium.org, skuhne@chromium.org BUG=279105 TEST=unit_tests, browser_tests, ash_unittests, ash_shell Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=228595

Patch Set 1 #

Patch Set 2 : Fix for reverting #

Patch Set 3 : Rebased #

Total comments: 4

Patch Set 4 : Rebased #

Total comments: 5

Patch Set 5 : #

Patch Set 6 : Rebased and DCHECK(LauncherItemDelegate*) for LauncherID #

Total comments: 2

Patch Set 7 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+836 lines, -468 lines) Patch
M ash/ash.gyp View 1 2 3 4 5 6 4 chunks +14 lines, -1 line 0 comments Download
M ash/launcher/launcher.cc View 1 2 3 4 5 1 chunk +4 lines, -2 lines 0 comments Download
M ash/launcher/launcher_delegate.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/launcher/launcher_item_delegate.h View 3 chunks +9 lines, -14 lines 0 comments Download
M ash/launcher/launcher_item_delegate_manager.h View 1 chunk +42 lines, -20 lines 0 comments Download
M ash/launcher/launcher_item_delegate_manager.cc View 1 2 3 4 5 6 1 chunk +54 lines, -10 lines 0 comments Download
M ash/launcher/launcher_unittest.cc View 1 2 3 4 5 6 chunks +17 lines, -2 lines 0 comments Download
M ash/launcher/launcher_view.cc View 1 2 3 4 5 6 8 chunks +15 lines, -17 lines 4 comments Download
M ash/launcher/launcher_view_unittest.cc View 1 2 3 4 5 8 chunks +17 lines, -0 lines 0 comments Download
M ash/shelf/app_list_shelf_item_delegate.h View 1 chunk +5 lines, -9 lines 0 comments Download
M ash/shelf/app_list_shelf_item_delegate.cc View 3 chunks +5 lines, -14 lines 0 comments Download
M ash/shell.h View 1 2 3 4 5 6 3 chunks +1 line, -3 lines 0 comments Download
M ash/shell.cc View 1 2 3 4 5 6 3 chunks +24 lines, -3 lines 0 comments Download
M ash/shell/launcher_delegate_impl.h View 3 chunks +1 line, -16 lines 0 comments Download
M ash/shell/launcher_delegate_impl.cc View 1 chunk +0 lines, -40 lines 0 comments Download
M ash/shell/window_watcher.cc View 3 chunks +10 lines, -1 line 0 comments Download
A ash/shell/window_watcher_launcher_item_delegate.h View 1 chunk +44 lines, -0 lines 0 comments Download
A ash/shell/window_watcher_launcher_item_delegate.cc View 1 chunk +58 lines, -0 lines 0 comments Download
A ash/test/launcher_item_delegate_manager_test_api.h View 1 chunk +34 lines, -0 lines 0 comments Download
A ash/test/launcher_item_delegate_manager_test_api.cc View 1 chunk +29 lines, -0 lines 0 comments Download
M ash/test/test_launcher_delegate.h View 3 chunks +0 lines, -16 lines 0 comments Download
M ash/test/test_launcher_delegate.cc View 5 chunks +8 lines, -53 lines 0 comments Download
A ash/test/test_launcher_item_delegate.h View 1 chunk +44 lines, -0 lines 0 comments Download
A ash/test/test_launcher_item_delegate.cc View 1 chunk +52 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 chunk +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 6 chunks +46 lines, -19 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 4 chunks +48 lines, -29 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 8 chunks +14 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 3 4 5 16 chunks +36 lines, -71 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 3 9 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 22 chunks +88 lines, -20 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_item_controller.h View 4 chunks +2 lines, -15 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_controller.cc View 4 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.h View 2 chunks +11 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc View 4 chunks +67 lines, -40 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
simonhong_
Dear sky, Previous cl was reverted. I addressed that issue at patchset #2. Please check ...
7 years, 2 months ago (2013-10-03 01:20:44 UTC) #1
simonhong_
Kindly ping..
7 years, 2 months ago (2013-10-08 23:15:48 UTC) #2
Mr4D (OOO till 08-26)
Please see comments! https://codereview.chromium.org/25823002/diff/36001/ash/launcher/launcher_view.cc File ash/launcher/launcher_view.cc (right): https://codereview.chromium.org/25823002/diff/36001/ash/launcher/launcher_view.cc#newcode825 ash/launcher/launcher_view.cc:825: // FinalizeRipOffDrag(). Actually that is a ...
7 years, 2 months ago (2013-10-09 00:38:22 UTC) #3
simonhong_
On 2013/10/09 00:38:22, Mr4D wrote: > Please see comments! > > https://codereview.chromium.org/25823002/diff/36001/ash/launcher/launcher_view.cc > File ash/launcher/launcher_view.cc ...
7 years, 2 months ago (2013-10-09 00:56:33 UTC) #4
Mr4D (OOO till 08-26)
It is a bit confusing towards what is now from the patch, what is new ...
7 years, 2 months ago (2013-10-09 16:14:08 UTC) #5
simonhong_
Dear stefan, Please check my comments. https://codereview.chromium.org/25823002/diff/57001/ash/launcher/launcher_view.cc File ash/launcher/launcher_view.cc (right): https://codereview.chromium.org/25823002/diff/57001/ash/launcher/launcher_view.cc#newcode1880 ash/launcher/launcher_view.cc:1880: item_manager_->GetLauncherItemDelegate(item->id); On 2013/10/09 ...
7 years, 2 months ago (2013-10-09 22:14:10 UTC) #6
Mr4D (OOO till 08-26)
Can you do a quick investigation for my comment in line 1880? Beside that I ...
7 years, 2 months ago (2013-10-10 04:20:14 UTC) #7
simonhong_
On 2013/10/10 04:20:14, Mr4D wrote: > Can you do a quick investigation for my comment ...
7 years, 2 months ago (2013-10-10 04:32:50 UTC) #8
simonhong_
Dear stefan, I inserted NULL check routine into LauncherItemDelegateManager::GetLauncherItemDelegate(). Please check again!
7 years, 2 months ago (2013-10-10 07:44:47 UTC) #9
Mr4D (OOO till 08-26)
Many thanks for doing this! lgtm https://codereview.chromium.org/25823002/diff/75001/ash/launcher/launcher_item_delegate_manager.cc File ash/launcher/launcher_item_delegate_manager.cc (right): https://codereview.chromium.org/25823002/diff/75001/ash/launcher/launcher_item_delegate_manager.cc#newcode40 ash/launcher/launcher_item_delegate_manager.cc:40: // When LauncherItem ...
7 years, 2 months ago (2013-10-10 14:23:46 UTC) #10
simonhong_
Dear sky, I need owners check. Most of part are not changed previous version. Please ...
7 years, 2 months ago (2013-10-10 18:09:00 UTC) #11
sky
What specific files do you need me to look at? If I've already reviewed large ...
7 years, 2 months ago (2013-10-10 20:26:16 UTC) #12
simonhong_
On 2013/10/10 20:26:16, sky wrote: > What specific files do you need me to look ...
7 years, 2 months ago (2013-10-10 21:55:36 UTC) #13
simonhong_
On 2013/10/10 21:55:36, Simon YoungKi Hong wrote: > On 2013/10/10 20:26:16, sky wrote: > > ...
7 years, 2 months ago (2013-10-10 21:57:10 UTC) #14
sky
https://codereview.chromium.org/25823002/diff/99001/ash/launcher/launcher_view.cc File ash/launcher/launcher_view.cc (right): https://codereview.chromium.org/25823002/diff/99001/ash/launcher/launcher_view.cc#newcode796 ash/launcher/launcher_view.cc:796: if (bounds) { I don't like the NULL checks ...
7 years, 2 months ago (2013-10-14 13:24:43 UTC) #15
simonhong_
Dear sky, Please check again. https://codereview.chromium.org/25823002/diff/99001/ash/launcher/launcher_view.cc File ash/launcher/launcher_view.cc (right): https://codereview.chromium.org/25823002/diff/99001/ash/launcher/launcher_view.cc#newcode796 ash/launcher/launcher_view.cc:796: if (bounds) { On ...
7 years, 2 months ago (2013-10-14 21:17:31 UTC) #16
sky
LGTM
7 years, 2 months ago (2013-10-15 00:17:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simon.hong81@gmail.com/25823002/99001
7 years, 2 months ago (2013-10-15 00:20:16 UTC) #18
commit-bot: I haz the power
7 years, 2 months ago (2013-10-15 02:38:44 UTC) #19
Message was sent while issue was closed.
Change committed as 228595

Powered by Google App Engine
This is Rietveld 408576698