[go: nahoru, domu]

Extract locale switching from LoginUitlsImpl::DoBrowserLaunch()

DoBrowserLaunch() switches to the user's desired locale and then launches
the browser. This CL extracts the locale switching into a RespectLocale()
method that can be called earlier, without launching the browser quite
yet. This will be used for public sessions, where the locale switch must
occur before the Terms of Service screen is shown.

Calling the RespectLocale() method is entirely optional. If it has not
been called, DoBrowserLaunch() will perform the locale switch as it used
to. Thus, all code paths that use DoBrowserLaunch() remain unchanged.

BUG=214904
TEST=All existing login tests still pass

Review URL: https://codereview.chromium.org/394883004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285270 0039d316-1c4b-4281-b951-d872f2087c98
8 files changed