|
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
Total comments: 4
Total comments: 5
Total comments: 2
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
|
Total messages: 19 (0 generated)
|