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

Issue 22887015: Remove PerBrowser launcher (Closed)

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

Description

Remove PerBrowser launcher Remove per-browser.* and related tests. Remove IsPerAppLauncher() interface in LauncherDelegate. Remove ash-disable-per-app-launcher switch. Change class name from ChromeLauncherControllerPerApp to ChromeLauncherController. In the next CL, BrowserLauncherItemController will be replaced with new browser status monitor only for monitoring browser and tab status. R=skuhne@chromium.org,jamescook@chromium.org BUG=169303 TEST=unit_tests, browser_tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=218674

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 30

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : fix indentation #

Total comments: 10

Patch Set 6 : #

Total comments: 10

Patch Set 7 : remove virtual & OVERRIDE #

Patch Set 8 : Use chrome_launcher_controller_ instead of launcher_controller() in const function #

Patch Set 9 : Makes IsLoggedInAsGuest() as a virtual function #

Patch Set 10 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3151 lines, -8571 lines) Patch
M ash/ash_switches.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ash/ash_switches.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M ash/launcher/launcher.h View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M ash/launcher/launcher.cc View 1 chunk +1 line, -4 lines 0 comments Download
M ash/launcher/launcher_delegate.h View 1 2 chunks +1 line, -4 lines 0 comments Download
M ash/shell/launcher_delegate_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/shell/launcher_delegate_impl.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ash/test/test_launcher_delegate.h View 1 chunk +0 lines, -1 line 0 comments Download
M ash/test/test_launcher_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/app_shortcut_launcher_item_controller.cc View 1 2 3 4 5 6 7 10 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc View 1 2 3 4 5 6 5 chunks +8 lines, -66 lines 0 comments Download
D chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc View 1 chunk +0 lines, -543 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.h View 1 2 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/ui/ash/launcher/browser_shortcut_launcher_item_controller.cc View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_browser.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_tab.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_app_menu_item_v2app.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.h View 1 2 3 4 5 6 7 8 9 5 chunks +322 lines, -118 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc View 1 2 2 chunks +1633 lines, -14 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_browsertest.cc View 1 2 3 4 5 30 chunks +944 lines, -116 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.h View 1 2 1 chunk +0 lines, -508 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc View 1 2 1 chunk +0 lines, -1678 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app_browsertest.cc View 1 2 1 chunk +0 lines, -1616 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app_unittest.cc View 1 2 1 chunk +0 lines, -1387 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.h View 1 chunk +0 lines, -430 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc View 1 1 chunk +0 lines, -1476 lines 0 comments Download
D chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser_unittest.cc View 1 chunk +0 lines, -462 lines 0 comments Download
A + chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 35 chunks +187 lines, -44 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_application_menu_item_model.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu_unittest.cc View 1 2 3 4 5 2 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/ash/launcher/shell_window_launcher_item_controller.cc View 1 2 4 chunks +2 lines, -18 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
simonhong_
Dear Stefan, Please take a look. Thank you. Simon.
7 years, 4 months ago (2013-08-15 15:29:28 UTC) #1
simonhong_
kindly ping...
7 years, 4 months ago (2013-08-16 22:12:22 UTC) #2
Mr4D (OOO till 08-26)
Very good start! There are more things missing (see comments). Also - please note in ...
7 years, 4 months ago (2013-08-16 22:43:22 UTC) #3
simonhong_
Dear Stefan, Please check again! https://codereview.chromium.org/22887015/diff/4001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc (right): https://codereview.chromium.org/22887015/diff/4001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc#newcode3 chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc:3: // found in the ...
7 years, 4 months ago (2013-08-19 05:26:10 UTC) #4
Mr4D (OOO till 08-26)
Only a few more nits - then we are there! https://codereview.chromium.org/22887015/diff/22001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc File chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc (left): https://codereview.chromium.org/22887015/diff/22001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc#oldcode1 ...
7 years, 4 months ago (2013-08-19 16:13:56 UTC) #5
simonhong_
Dear Stefan, I addressed your comments. Please check again! https://codereview.chromium.org/22887015/diff/22001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc File chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc (left): https://codereview.chromium.org/22887015/diff/22001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc#oldcode1 chrome/browser/ui/ash/launcher/browser_launcher_item_controller_unittest.cc:1: ...
7 years, 4 months ago (2013-08-19 21:00:56 UTC) #6
Mr4D (OOO till 08-26)
lgtm
7 years, 4 months ago (2013-08-19 21:32:53 UTC) #7
simonhong_
Dear jamescook, I need owners check in ash/
7 years, 4 months ago (2013-08-19 21:35:26 UTC) #8
James Cook
https://codereview.chromium.org/22887015/diff/31001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc File chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc (right): https://codereview.chromium.org/22887015/diff/31001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc#newcode247 chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc:247: return; nit: no "return" needed https://codereview.chromium.org/22887015/diff/31001/chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc#newcode251 chrome/browser/ui/ash/launcher/browser_launcher_item_controller.cc:251: return; nit: ...
7 years, 4 months ago (2013-08-19 22:32:38 UTC) #9
simonhong_
Dear jamescook, I removed useless virtual & OVERRIDE. Also I added a const version of ...
7 years, 4 months ago (2013-08-20 01:11:19 UTC) #10
simonhong_
Instead of using launcher_controller(), chrome_launcher_controller_ is added to access in const function of AppShortcutLauncherItemController.
7 years, 4 months ago (2013-08-20 02:02:16 UTC) #11
James Cook
LGTM. Thanks for cleaning this up!
7 years, 4 months ago (2013-08-20 16:42:22 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simon.hong81@gmail.com/22887015/46001
7 years, 4 months ago (2013-08-20 17:34:32 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 4 months ago (2013-08-20 20:58:57 UTC) #14
simonhong_
Dear jamescook, I changed ChromeLauncherController::IsLoggedInAsGuest() to virtual function. LauncherContextMenuTest overrides it for test. Please check ...
7 years, 4 months ago (2013-08-20 21:24:21 UTC) #15
James Cook
lgtm
7 years, 4 months ago (2013-08-20 21:26:03 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simon.hong81@gmail.com/22887015/76001
7 years, 4 months ago (2013-08-20 21:31:11 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/22887015/82001
7 years, 4 months ago (2013-08-21 00:38:02 UTC) #18
commit-bot: I haz the power
Change committed as 218674
7 years, 4 months ago (2013-08-21 08:14:20 UTC) #19
James Cook
This change lost the revision history of chrome_launcher_controller_per_app.h/cc due to a delete and rename on ...
7 years, 4 months ago (2013-08-21 20:03:27 UTC) #20
simonhong_
On 2013/08/21 20:03:27, James Cook wrote: > This change lost the revision history of chrome_launcher_controller_per_app.h/cc ...
7 years, 4 months ago (2013-08-21 20:19:43 UTC) #21
James Cook
7 years, 4 months ago (2013-08-21 21:26:41 UTC) #22
Message was sent while issue was closed.
On 2013/08/21 20:03:27, James Cook wrote:
> This change lost the revision history of
chrome_launcher_controller_per_app.h/cc
> due to a delete and rename on top of each other. I reverted it with
> https://src.chromium.org/viewvc/chrome?view=rev&revision=218808
> 
> I'll re-land the parts separately

Reland part 1: https://codereview.chromium.org/23068021/

Powered by Google App Engine
This is Rietveld 408576698