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

Issue 933503004: Always load signin profile on Chrome OS startup. (Closed)

Created:
5 years, 10 months ago by Ivan Podogov
Modified:
5 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, grt+watch_chromium.org, nhiroki, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org, dzhioev (left Google)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Always load signin profile on Chrome OS startup. Starting a Chrome OS session (e.g. on Linux build) using "--login-profile=" and then pressing Ctrl+Shift+L triggers some nasty behavior, as the sign-in profile was not loaded yet (which is not the case during normal boot-up, as this profile is usually the first thing that loads). This patch aims to force its loading for such cases. This affects not only stub login, but also any session that was restored. Current patch reiterates CL from https://codereview.chromium.org/240333011/ BUG=346763 Committed: https://crrev.com/9d3e646a9cc0ef50320b5c30847886a3e0171adc Cr-Commit-Position: refs/heads/master@{#318220}

Patch Set 1 #

Patch Set 2 : Nit. #

Patch Set 3 : Fix some more tests. #

Patch Set 4 : Fix build. #

Patch Set 5 : Fix build. #

Patch Set 6 : Fix Drive test. #

Patch Set 7 : Rollback unnecessary changes. #

Total comments: 30

Patch Set 8 : Code review fixes. #

Total comments: 2

Patch Set 9 : Nit. #

Total comments: 9

Patch Set 10 : Code review nits. #

Patch Set 11 : Comment. #

Patch Set 12 : Fix build. #

Total comments: 10

Patch Set 13 : Final nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -13 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 9 chunks +31 lines, -12 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
Ivan Podogov
PTAL nkostylev@ for chrome/browser/chromeos/ mtomasz@ for chrome/browser/*file* skuhne@ for chrome/browser/profiles/ mattm@ for chrome/browser/safe_browsing/
5 years, 10 months ago (2015-02-17 14:40:09 UTC) #2
Nikita (slow)
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc File chrome/browser/chromeos/chrome_browser_main_chromeos.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/chromeos/chrome_browser_main_chromeos.cc#newcode538 chrome/browser/chromeos/chrome_browser_main_chromeos.cc:538: if (!chromeos::ProfileHelper::IsSigninProfile(profile())) We're discussing with Pavel that another potential ...
5 years, 10 months ago (2015-02-17 14:44:55 UTC) #3
Nikita (slow)
On 2015/02/17 14:40:09, Ivan Podogov wrote: > PTAL > > nkostylev@ for chrome/browser/chromeos/ lgtm
5 years, 10 months ago (2015-02-17 14:46:24 UTC) #4
Mr4D (OOO till 08-26)
lgtm for c/b/p https://codereview.chromium.org/933503004/diff/120001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/profiles/profile_manager.cc#newcode815 chrome/browser/profiles/profile_manager.cc:815: ->GetSigninProfileDir() != profile->GetPath() && You might ...
5 years, 10 months ago (2015-02-17 15:46:51 UTC) #5
Nikita (slow)
Please change description to smth else. Instead of "Reiterate dzhioev's patch" link to that CL.
5 years, 10 months ago (2015-02-17 16:40:22 UTC) #6
mattm
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode1032 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:1032: // On Chrome OS we should disable safe browsing ...
5 years, 10 months ago (2015-02-17 23:13:06 UTC) #7
mtomasz
I know very little about signin profiles, but this change looks complex. Are we sure ...
5 years, 10 months ago (2015-02-18 03:13:07 UTC) #8
Ivan Podogov
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/profiles/profile_browsertest.cc File chrome/browser/profiles/profile_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/profiles/profile_browsertest.cc#newcode363 chrome/browser/profiles/profile_browsertest.cc:363: #if defined(OS_CHROMEOS) On 2015/02/18 03:13:06, mtomasz wrote: > Why ...
5 years, 10 months ago (2015-02-18 09:03:30 UTC) #10
Nikita (slow)
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode1032 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:1032: // On Chrome OS we should disable safe browsing ...
5 years, 10 months ago (2015-02-19 14:48:09 UTC) #11
mtomasz
(Please mark addressed comments with Done). https://codereview.chromium.org/933503004/diff/140001/chrome/browser/profiles/profile_manager_browsertest.cc File chrome/browser/profiles/profile_manager_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/140001/chrome/browser/profiles/profile_manager_browsertest.cc#newcode274 chrome/browser/profiles/profile_manager_browsertest.cc:274: #if defined(OS_CHROMEOS) On ...
5 years, 10 months ago (2015-02-20 02:00:42 UTC) #12
Ivan Podogov
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc File chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc#newcode66 chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc:66: drive::DriveIntegrationService* CreateDriveIntegrationService( On 2015/02/18 03:13:06, mtomasz wrote: > Could ...
5 years, 10 months ago (2015-02-24 11:43:17 UTC) #13
mattm
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc File chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc#newcode66 chrome/browser/extensions/api/file_system/file_system_apitest_chromeos.cc:66: drive::DriveIntegrationService* CreateDriveIntegrationService( On 2015/02/24 11:43:16, Ivan Podogov wrote: > ...
5 years, 10 months ago (2015-02-24 20:39:06 UTC) #14
mtomasz
https://codereview.chromium.org/933503004/diff/160001/chrome/browser/profiles/profile_browsertest.cc File chrome/browser/profiles/profile_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/160001/chrome/browser/profiles/profile_browsertest.cc#newcode18 chrome/browser/profiles/profile_browsertest.cc:18: #include "chrome/browser/chromeos/profiles/profile_helper.h" Shall this be included only for chromeos? ...
5 years, 10 months ago (2015-02-25 05:49:41 UTC) #15
Ivan Podogov
https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc File chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc (right): https://codereview.chromium.org/933503004/diff/120001/chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc#newcode1032 chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc:1032: // On Chrome OS we should disable safe browsing ...
5 years, 10 months ago (2015-02-25 11:11:04 UTC) #16
mattm
safe_browsing lgtm
5 years, 10 months ago (2015-02-25 23:26:04 UTC) #17
mtomasz
In the CL description please add an extra new line between the title and the ...
5 years, 10 months ago (2015-02-26 04:27:50 UTC) #18
Ivan Podogov
https://codereview.chromium.org/933503004/diff/220001/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc File chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc (right): https://codereview.chromium.org/933503004/diff/220001/chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc#newcode538 chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc:538: CHECK(fake_drive_service_ == NULL); On 2015/02/26 04:27:50, mtomasz wrote: > ...
5 years, 10 months ago (2015-02-26 11:02:08 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/933503004/240001
5 years, 10 months ago (2015-02-26 11:03:07 UTC) #22
commit-bot: I haz the power
Committed patchset #13 (id:240001)
5 years, 10 months ago (2015-02-26 12:18:17 UTC) #23
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 12:19:03 UTC) #24
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/9d3e646a9cc0ef50320b5c30847886a3e0171adc
Cr-Commit-Position: refs/heads/master@{#318220}

Powered by Google App Engine
This is Rietveld 408576698