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

Issue 1044523002: Linux: Fix regression with --kiosk. (Closed)

Created:
5 years, 9 months ago by Lei Zhang
Modified:
5 years, 9 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Linux: Fix regression with --kiosk. BUG=470265 TEST=Manual, --kiosk should open in kiosk mode.

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -23 lines) Patch
M chrome/browser/ui/startup/startup_browser_creator_impl.h View 1 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator_impl.cc View 10 chunks +20 lines, -16 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Lei Zhang
The problem with the existing code is that BrowserList::GetLastActive() returns NULL. Immediately after Browser creation, ...
5 years, 9 months ago (2015-03-27 22:14:34 UTC) #2
Peter Kasting
I gather this was easier than explicitly calling SetLastActive() as the old CL did? LGTM ...
5 years, 9 months ago (2015-03-27 22:18:00 UTC) #3
Lei Zhang
On 2015/03/27 22:18:00, Peter Kasting wrote: > I gather this was easier than explicitly calling ...
5 years, 9 months ago (2015-03-27 22:25:46 UTC) #4
Peter Kasting
On 2015/03/27 22:25:46, Lei Zhang wrote: > On 2015/03/27 22:18:00, Peter Kasting wrote: > > ...
5 years, 9 months ago (2015-03-27 22:29:43 UTC) #5
Lei Zhang
On 2015/03/27 22:29:43, Peter Kasting wrote: > On 2015/03/27 22:25:46, Lei Zhang wrote: > > ...
5 years, 9 months ago (2015-03-27 22:47:02 UTC) #6
Lei Zhang
So on Windows, BrowserFrame::OnNativeWidgetActivationChanged() or BrowserView::OnWidgetActivationChanged() gets called before we look for the kiosk switch? ...
5 years, 9 months ago (2015-03-27 23:08:04 UTC) #7
Lei Zhang
On 2015/03/27 23:08:04, Lei Zhang wrote: > So on Windows, BrowserFrame::OnNativeWidgetActivationChanged() or > BrowserView::OnWidgetActivationChanged() gets ...
5 years, 9 months ago (2015-03-27 23:14:21 UTC) #8
Peter Kasting
On 2015/03/27 23:14:21, Lei Zhang wrote: > On 2015/03/27 23:08:04, Lei Zhang wrote: > > ...
5 years, 9 months ago (2015-03-27 23:46:55 UTC) #9
Lei Zhang
5 years, 9 months ago (2015-03-28 02:06:48 UTC) #10
On 2015/03/27 23:46:55, Peter Kasting wrote:
> On 2015/03/27 23:14:21, Lei Zhang wrote:
> > On 2015/03/27 23:08:04, Lei Zhang wrote:
> > > So on Windows, BrowserFrame::OnNativeWidgetActivationChanged() or
> > > BrowserView::OnWidgetActivationChanged() gets called before we look for
the
> > > kiosk switch? On Linux, they get called after. I see
> > > https://codereview.chromium.org/2847090/ got reverted, but it's not
obvious
> > why.
> > > Are you suggesting trying to reapply it, rather than doing this CL?
> > 
> > Adding BrowserList::SetLastActive() works for me, and it looks like
> > BrowserWindowCocoa::Show() calls BrowserList::SetLastActive() as well.
> 
> I'm all for changes that make the three platforms more consistent.  If it
> happens to obviate the need for the rest of this CL, that's great.
> 
> The CL as you've written it doesn't seem wrong, either; I'm not opposed to it
if
> you think it's a win, but I figured the other change might be simpler and
might
> avoid any future edge cases that expected an active window sooner.

Sounds good. Closing this CL.

Powered by Google App Engine
This is Rietveld 408576698