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

Issue 15163003: Don't open Chrome browser window on first login of a new user. Because it will hide Getting Started… (Closed)

Created:
7 years, 7 months ago by cylee1
Modified:
7 years, 7 months ago
Reviewers:
Dmitry Polukhin, Finnur, sky
CC:
chromium-reviews, Chi-Ngai Wan
Visibility:
Public.

Description

Don't open Chrome browser window on first login of a new user. Because it will hind Getting Started Guide window. BUG=chromium:239755

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Total comments: 2

Patch Set 3 : Change an implementation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Dmitry Polukhin
LGTM
7 years, 7 months ago (2013-05-15 06:57:22 UTC) #1
cylee1
Hi Scott, We intended to show the Getting Started Guide App on first launch of ...
7 years, 7 months ago (2013-05-15 07:21:39 UTC) #2
Finnur
Just a few comments while looking at this. But before we get to that I ...
7 years, 7 months ago (2013-05-15 10:24:32 UTC) #3
cylee1
https://codereview.chromium.org/15163003/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/15163003/diff/1/chrome/browser/ui/startup/startup_browser_creator.cc#newcode257 chrome/browser/ui/startup/startup_browser_creator.cc:257: // Not to open default Chrome window for the ...
7 years, 7 months ago (2013-05-15 13:39:49 UTC) #4
sky
Also, have you trun browser_tests to make sure they aren't effected? https://codereview.chromium.org/15163003/diff/7001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): ...
7 years, 7 months ago (2013-05-15 15:21:55 UTC) #5
cylee1
I haven't run try bot yet. Will do. https://codereview.chromium.org/15163003/diff/7001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/15163003/diff/7001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode600 chrome/browser/ui/startup/startup_browser_creator.cc:600: } ...
7 years, 7 months ago (2013-05-15 18:10:44 UTC) #6
sky
On Wed, May 15, 2013 at 11:10 AM, <cylee@chromium.org> wrote: > I haven't run try ...
7 years, 7 months ago (2013-05-15 21:14:47 UTC) #7
cylee1
> > That was my first try. But somewhere in chromeos/login/login_utils.cc > > calls StartupBrowserCreator::LaunchBrowser() ...
7 years, 7 months ago (2013-05-16 11:47:37 UTC) #8
cylee1
The implementation is not ideal since it'll break many test. Please ignore the CL from ...
7 years, 7 months ago (2013-05-16 12:49:25 UTC) #9
sky
On Thu, May 16, 2013 at 4:47 AM, <cylee@chromium.org> wrote: >> > That was my ...
7 years, 7 months ago (2013-05-16 15:47:45 UTC) #10
cylee
7 years, 7 months ago (2013-05-16 16:14:33 UTC) #11
> >   // TODO(pastarmovj): Restart the browser and apply any flags set by the
> > user.
> >   // See: http://crosbug.com/39249
> 
> Sorry for not being clear. Yes, that is what I was asking about. Can
> you really hit this code path for a new user?
> 
>   -Scott
Yes I've deployed a chrome to my pixel and it works.
The normal path calls StartupBrowserCreator::Start() (from
chrome_browser_main.cc), then it checks all flags and silent_launch, then in
turns call  StartupBrowserCreator::LaunchBrowser(). 
However as the comments in chromeos/login/login_utils.cc says, it forcibly
restarts the browser by calling LaunchBrowser(). So some logic in
StartupBrowserCreator::Start()  is skipped.

Powered by Google App Engine
This is Rietveld 408576698