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

Issue 322533002: Restart Chrome on ChromeOS as early as possible to speed up restart. (Closed)

Created:
6 years, 6 months ago by Alexander Alekseev
Modified:
6 years, 5 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, DaveMoore
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Restart Chrome on ChromeOS as early as possible to speed up restart. Chrome on ChromeOS is sometimes restarted on user session startup. This CL moves restart as early as possible to prevent duplicating startup steps before and after restart. BUG=346913 TEST=manual Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280045

Patch Set 1 #

Total comments: 7

Patch Set 2 : Make RestartToApplyPerSessionFlagsIfNeed global function. #

Total comments: 1

Patch Set 3 : Move two functions to anonymous namespace. #

Patch Set 4 : Added check for Oauth data consistency. #

Total comments: 6

Patch Set 5 : Comments updated. #

Patch Set 6 : Fix build. #

Patch Set 7 : rebased. #

Patch Set 8 : Fix windows build. #

Patch Set 9 : Fix windows build. #

Patch Set 10 : Fix win build. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -23 lines) Patch
M chrome/browser/chromeos/login/existing_user_controller.h View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/existing_user_controller.cc View 1 2 3 4 5 6 4 chunks +20 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/fake_login_utils.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.h View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/login_utils.cc View 1 2 3 4 5 6 6 chunks +73 lines, -18 lines 1 comment Download
M chrome/browser/chromeos/login/mock_login_utils.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/test_login_utils.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
Alexander Alekseev
Please review. Startup trace files after change shows that all necessary shutdown steps are executed.
6 years, 6 months ago (2014-06-06 16:43:45 UTC) #1
Nikita (slow)
https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc#newcode679 chrome/browser/chromeos/login/login_utils.cc:679: bool LoginUtilsImpl::RestartToApplyPerSessionFlagsIfNeed(Profile* profile) { nit: Move this to unnamed ...
6 years, 6 months ago (2014-06-10 14:21:00 UTC) #2
Alexander Alekseev
https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc#newcode679 chrome/browser/chromeos/login/login_utils.cc:679: bool LoginUtilsImpl::RestartToApplyPerSessionFlagsIfNeed(Profile* profile) { On 2014/06/10 14:21:00, Nikita Kostylev ...
6 years, 6 months ago (2014-06-10 22:05:14 UTC) #3
Nikita (slow)
Please revert to the first patchset and move only these functions: CreatePerSessionCommandLine() NeedRestartToApplyPerSessionFlags() https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc File ...
6 years, 6 months ago (2014-06-11 12:42:51 UTC) #4
Alexander Alekseev
https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/322533002/diff/1/chrome/browser/chromeos/login/login_utils.cc#newcode679 chrome/browser/chromeos/login/login_utils.cc:679: bool LoginUtilsImpl::RestartToApplyPerSessionFlagsIfNeed(Profile* profile) { On 2014/06/11 12:42:51, Nikita Kostylev ...
6 years, 6 months ago (2014-06-11 15:15:50 UTC) #5
Nikita (slow)
As discussed, please add additional condition so that such an early Chrome restart is only ...
6 years, 6 months ago (2014-06-16 13:53:37 UTC) #6
Alexander Alekseev
Please review. On 2014/06/16 13:53:37, Nikita Kostylev wrote: > As discussed, please add additional condition ...
6 years, 6 months ago (2014-06-17 18:31:14 UTC) #7
Nikita (slow)
lgtm https://codereview.chromium.org/322533002/diff/60001/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/322533002/diff/60001/chrome/browser/chromeos/login/login_utils.cc#newcode125 chrome/browser/chromeos/login/login_utils.cc:125: if (!controller) Could be simplified as return !controller ...
6 years, 6 months ago (2014-06-18 12:23:30 UTC) #8
Alexander Alekseev
https://codereview.chromium.org/322533002/diff/60001/chrome/browser/chromeos/login/login_utils.cc File chrome/browser/chromeos/login/login_utils.cc (right): https://codereview.chromium.org/322533002/diff/60001/chrome/browser/chromeos/login/login_utils.cc#newcode125 chrome/browser/chromeos/login/login_utils.cc:125: if (!controller) On 2014/06/18 12:23:30, Nikita Kostylev wrote: > ...
6 years, 6 months ago (2014-06-18 15:06:55 UTC) #9
Nikita (slow)
still lgtm
6 years, 6 months ago (2014-06-20 08:32:25 UTC) #10
Alexander Alekseev
-davemoore@ (seems to be busy) +rlp@ Please review chrome/browser/profiles/*
6 years, 6 months ago (2014-06-24 14:44:22 UTC) #11
rpetterson
profiles LGTM
6 years, 6 months ago (2014-06-24 19:54:41 UTC) #12
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 6 months ago (2014-06-24 20:30:54 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/322533002/80001
6 years, 6 months ago (2014-06-24 20:31:44 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-25 00:03:01 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-25 00:13:52 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_clang_dbg/builds/25815)
6 years, 6 months ago (2014-06-25 00:13:53 UTC) #17
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 6 months ago (2014-06-26 01:49:12 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/322533002/150001
6 years, 6 months ago (2014-06-26 01:50:40 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-26 05:16:09 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-26 05:28:19 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/32490) win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/25914)
6 years, 6 months ago (2014-06-26 05:28:21 UTC) #22
Alexander Alekseev
The CQ bit was checked by alemate@chromium.org
6 years, 6 months ago (2014-06-26 14:27:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/alemate@chromium.org/322533002/170001
6 years, 6 months ago (2014-06-26 14:30:06 UTC) #24
commit-bot: I haz the power
Change committed as 280045
6 years, 6 months ago (2014-06-26 17:48:15 UTC) #25
Nikita (slow)
6 years, 5 months ago (2014-06-27 17:19:46 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/322533002/diff/170001/chrome/browser/chromeos...
File chrome/browser/chromeos/login/login_utils.cc (right):

https://codereview.chromium.org/322533002/diff/170001/chrome/browser/chromeos...
chrome/browser/chromeos/login/login_utils.cc:122: LOG(ERROR) <<
"CanPerformEarlyRestart(): called.";
I don't think that this LOG(ERROR) is really needed.
Should be either removed or downgraded to VLOG(1).

Powered by Google App Engine
This is Rietveld 408576698