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

Issue 12077055: Made launcher hidden when kicking off chrome in app mode. (Closed)

Created:
7 years, 10 months ago by zel
Modified:
7 years, 10 months ago
CC:
chromium-reviews, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Made launcher hidden when kicking off chrome in app mode. A new switch --force-app-mode has been added for this purpose. On ChromeOS, this switch will also force app install in the next CL. BUG=172988, 173008 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179762

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Total comments: 13

Patch Set 4 : #

Total comments: 6

Patch Set 5 : rebase #

Total comments: 16

Patch Set 6 : #

Patch Set 7 : #

Total comments: 8

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -22 lines) Patch
M ash/root_window_controller.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M ash/shelf_types.h View 1 chunk +3 lines, -0 lines 0 comments Download
M ash/wm/shelf_layout_manager.h View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M ash/wm/shelf_layout_manager.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -5 lines 0 comments Download
A chrome/browser/app_mode/app_mode_utils.h View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/browser/app_mode/app_mode_utils.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/application_lifetime_aura.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/ash/ash_init.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/chrome_shell_delegate.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_browser.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/fullscreen/fullscreen_controller.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
zel
7 years, 10 months ago (2013-01-30 00:02:22 UTC) #1
oshima
https://codereview.chromium.org/12077055/diff/3001/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/3001/ash/wm/shelf_layout_manager.cc#newcode256 ash/wm/shelf_layout_manager.cc:256: default: case SHELF_AUTO_HIDE_BEHAVIOR_NEVER: and no default so that compilation ...
7 years, 10 months ago (2013-01-30 00:28:31 UTC) #2
Mr4D (OOO till 08-26)
Please see comments. Maybe even two utility functions (for kiosk as well)? https://codereview.chromium.org/12077055/diff/2002/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc ...
7 years, 10 months ago (2013-01-30 00:55:00 UTC) #3
zel
https://codereview.chromium.org/12077055/diff/3001/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/3001/ash/wm/shelf_layout_manager.cc#newcode256 ash/wm/shelf_layout_manager.cc:256: default: On 2013/01/30 00:28:31, oshima wrote: > case SHELF_AUTO_HIDE_BEHAVIOR_NEVER: ...
7 years, 10 months ago (2013-01-30 01:01:34 UTC) #4
oshima
lgtm my bits with one nit. I agree that it's better to have a predicate ...
7 years, 10 months ago (2013-01-30 01:17:15 UTC) #5
zel
https://codereview.chromium.org/12077055/diff/2002/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc (right): https://codereview.chromium.org/12077055/diff/2002/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc#newcode638 chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc:638: command_line->HasSwitch(switches::kForceAppMode)) { On 2013/01/30 00:55:00, Mr4D wrote: > Please ...
7 years, 10 months ago (2013-01-30 01:46:32 UTC) #6
Mr4D (OOO till 08-26)
I would put it there. https://codereview.chromium.org/12077055/diff/2002/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc File chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc (right): https://codereview.chromium.org/12077055/diff/2002/chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc#newcode638 chrome/browser/ui/ash/launcher/chrome_launcher_controller_per_app.cc:638: command_line->HasSwitch(switches::kForceAppMode)) { Maybe chrome/browser/ui/ash/ash_util.cc?
7 years, 10 months ago (2013-01-30 02:11:41 UTC) #7
zel
PTAL I moved that switch check to chrome/common/switch_utils.cc to IsRunningInAppMode(). I've also changed browser lifetime ...
7 years, 10 months ago (2013-01-30 03:03:44 UTC) #8
Mr4D (OOO till 08-26)
lgtm lgtm with the tiny nits. https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/chrome_shell_delegate.cc File chrome/browser/ui/ash/chrome_shell_delegate.cc (right): https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/chrome_shell_delegate.cc#newcode589 chrome/browser/ui/ash/chrome_shell_delegate.cc:589: if (switches::IsRunningInAppMode()) { ...
7 years, 10 months ago (2013-01-30 04:05:27 UTC) #9
oshima
https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/ash_init.cc File chrome/browser/ui/ash/ash_init.cc (right): https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/ash_init.cc#newcode112 chrome/browser/ui/ash/ash_init.cc:112: browser::StartKeepAlive(); I think you should skip EndKeepAlive in application_lifetime_aura.cc
7 years, 10 months ago (2013-01-30 06:14:35 UTC) #10
Mattias Nissler (ping if slow)
Looks reasonable. I would be more comfortable if we brought up a shell that doesn't ...
7 years, 10 months ago (2013-01-30 10:46:14 UTC) #11
zel
https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/ash_init.cc File chrome/browser/ui/ash/ash_init.cc (right): https://codereview.chromium.org/12077055/diff/10002/chrome/browser/ui/ash/ash_init.cc#newcode112 chrome/browser/ui/ash/ash_init.cc:112: browser::StartKeepAlive(); On 2013/01/30 06:14:35, oshima wrote: > I think ...
7 years, 10 months ago (2013-01-30 17:06:43 UTC) #12
zel
7 years, 10 months ago (2013-01-30 22:05:01 UTC) #13
oshima
https://codereview.chromium.org/12077055/diff/9014/chrome/browser/lifetime/application_lifetime_aura.cc File chrome/browser/lifetime/application_lifetime_aura.cc (right): https://codereview.chromium.org/12077055/diff/9014/chrome/browser/lifetime/application_lifetime_aura.cc#newcode51 chrome/browser/lifetime/application_lifetime_aura.cc:51: NotifyAndTerminate(true); just FYI: I'm 100% sure if you can ...
7 years, 10 months ago (2013-01-30 22:08:20 UTC) #14
oshima
lgtm, if you tested and confirmed it works. On 2013/01/30 22:08:20, oshima wrote: > https://codereview.chromium.org/12077055/diff/9014/chrome/browser/lifetime/application_lifetime_aura.cc ...
7 years, 10 months ago (2013-01-30 22:14:17 UTC) #15
zel
https://codereview.chromium.org/12077055/diff/9014/chrome/browser/lifetime/application_lifetime_aura.cc File chrome/browser/lifetime/application_lifetime_aura.cc (right): https://codereview.chromium.org/12077055/diff/9014/chrome/browser/lifetime/application_lifetime_aura.cc#newcode51 chrome/browser/lifetime/application_lifetime_aura.cc:51: NotifyAndTerminate(true); On 2013/01/30 22:08:20, oshima wrote: > just FYI: ...
7 years, 10 months ago (2013-01-30 22:26:52 UTC) #16
sky
https://codereview.chromium.org/12077055/diff/9014/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/9014/ash/wm/shelf_layout_manager.cc#newcode250 ash/wm/shelf_layout_manager.cc:250: ShelfVisibilityState ShelfLayoutManager::GetShelfVisibilityState() { Make position match header, and name ...
7 years, 10 months ago (2013-01-30 22:27:10 UTC) #17
zel
https://codereview.chromium.org/12077055/diff/9014/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/9014/ash/wm/shelf_layout_manager.cc#newcode250 ash/wm/shelf_layout_manager.cc:250: ShelfVisibilityState ShelfLayoutManager::GetShelfVisibilityState() { On 2013/01/30 22:27:10, sky wrote: > ...
7 years, 10 months ago (2013-01-30 22:55:16 UTC) #18
sky
https://codereview.chromium.org/12077055/diff/9014/chrome/browser/ui/ash/ash_init.cc File chrome/browser/ui/ash/ash_init.cc (right): https://codereview.chromium.org/12077055/diff/9014/chrome/browser/ui/ash/ash_init.cc#newcode111 chrome/browser/ui/ash/ash_init.cc:111: !switches::IsRunningInAppMode()) { On 2013/01/30 22:55:16, zel wrote: > On ...
7 years, 10 months ago (2013-01-30 23:29:56 UTC) #19
zel
https://codereview.chromium.org/12077055/diff/9014/chrome/browser/ui/ash/ash_init.cc File chrome/browser/ui/ash/ash_init.cc (right): https://codereview.chromium.org/12077055/diff/9014/chrome/browser/ui/ash/ash_init.cc#newcode111 chrome/browser/ui/ash/ash_init.cc:111: !switches::IsRunningInAppMode()) { On 2013/01/30 23:29:56, sky wrote: > On ...
7 years, 10 months ago (2013-01-30 23:56:57 UTC) #20
sky
https://codereview.chromium.org/12077055/diff/8004/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/8004/ash/wm/shelf_layout_manager.cc#newcode279 ash/wm/shelf_layout_manager.cc:279: SetState(CalculateShelfVisibilityWhileDragging()); Should we instead ignore gestures when hidden.
7 years, 10 months ago (2013-01-31 00:58:13 UTC) #21
zel
https://codereview.chromium.org/12077055/diff/8004/ash/wm/shelf_layout_manager.cc File ash/wm/shelf_layout_manager.cc (right): https://codereview.chromium.org/12077055/diff/8004/ash/wm/shelf_layout_manager.cc#newcode279 ash/wm/shelf_layout_manager.cc:279: SetState(CalculateShelfVisibilityWhileDragging()); On 2013/01/31 00:58:13, sky wrote: > Should we ...
7 years, 10 months ago (2013-01-31 01:07:27 UTC) #22
sky
LGTM with a TODO and the following fixes. https://codereview.chromium.org/12077055/diff/8004/chrome/browser/app_mode/app_mode_utils.h File chrome/browser/app_mode/app_mode_utils.h (right): https://codereview.chromium.org/12077055/diff/8004/chrome/browser/app_mode/app_mode_utils.h#newcode8 chrome/browser/app_mode/app_mode_utils.h:8: #include ...
7 years, 10 months ago (2013-01-31 01:08:17 UTC) #23
zel
7 years, 10 months ago (2013-01-31 01:19:44 UTC) #24
https://codereview.chromium.org/12077055/diff/8004/chrome/browser/app_mode/ap...
File chrome/browser/app_mode/app_mode_utils.h (right):

https://codereview.chromium.org/12077055/diff/8004/chrome/browser/app_mode/ap...
chrome/browser/app_mode/app_mode_utils.h:8: #include <map>
On 2013/01/31 01:08:17, sky wrote:
> remove all includes from here.

Done.

https://codereview.chromium.org/12077055/diff/8004/chrome/browser/app_mode/ap...
chrome/browser/app_mode/app_mode_utils.h:13: namespace app_mode_utils {
On 2013/01/31 01:08:17, sky wrote:
> put this in chrome namespace (see thread to chromium-dev on namespaces).

Done.

https://codereview.chromium.org/12077055/diff/8004/chrome/browser/ui/startup/...
File chrome/browser/ui/startup/startup_browser_creator.cc (right):

https://codereview.chromium.org/12077055/diff/8004/chrome/browser/ui/startup/...
chrome/browser/ui/startup/startup_browser_creator.cc:574: // return false;
On 2013/01/31 01:08:17, sky wrote:
> Fix this. Either remove if (if not needed), or remove comment.

whoops! this wasn't suppose to be here at all. reverted.

Powered by Google App Engine
This is Rietveld 408576698