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

Issue 442043002: ProfileManager doesn't depend on "--login-profile" switch. (Closed)

Created:
6 years, 4 months ago by dzhioev (left Google)
Modified:
6 years, 3 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, Alan Savage
Project:
chromium
Visibility:
Public.

Description

ProfileManager doesn't depend on "--login-profile" switch. Chrome OS doesn't treat value of "login-profile" as a name for user's profile dir anymore, however ProfileManager used its value to let some old tests keep working. After removal "login-profile" from ProfileManager these tests were fixed. The significant change is that TestingProfileManager::CreateTestingProfile treats its |profile_name| argument as an user's id on CrOS, and creates profile with a correct path ("u-" + user_id_hash(profile_name)). This makes testing environment closer to real, so communication between ProfileManager <--> chromeos::ProfileHelper <--> chromeos::UserManager works without additional set up in tests. BUG=294628 TEST=all browser_tests and unit_tests are passing Committed: https://crrev.com/0298d729c605a27f041da3c709e865d1ac607ecb Cr-Commit-Position: refs/heads/master@{#291895}

Patch Set 1 #

Patch Set 2 : Rebased. #

Patch Set 3 : Running tests. #

Patch Set 4 : #

Patch Set 5 : Unit tests fixed. #

Patch Set 6 : Fixed tests and Windows compilation. #

Patch Set 7 : Polished. #

Patch Set 8 : More tests fixed. #

Total comments: 6

Patch Set 9 : Rebased and comments addressed. #

Total comments: 4

Patch Set 10 : Comments addressed and rebased. #

Total comments: 8

Patch Set 11 : More comments addressed. #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+205 lines, -217 lines) Patch
M chrome/browser/chromeos/drive/file_system_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/file_manager/path_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/users/fake_user_manager.cc View 1 2 3 4 5 6 7 8 9 6 chunks +11 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/policy/cloud_external_data_policy_observer_unittest.cc View 1 2 3 4 5 6 7 8 9 7 chunks +17 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/power/power_prefs_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 2 3 4 5 6 7 8 9 6 chunks +13 lines, -30 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper_browsertest.cc View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -21 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -28 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +39 lines, -21 lines 0 comments Download
M chrome/browser/safe_browsing/incident_reporting/incident_reporting_service_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -11 lines 0 comments Download
M chrome/browser/ui/ash/launcher/chrome_launcher_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -17 lines 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
dzhioev (left Google)
Hi all, please review. General review: skuhne@: c/b/profiles/* nkostylev@: c/b/chromeos/{login,profiles}/* jcivelli@: testing_profile_manager Affected unit tests ...
6 years, 4 months ago (2014-08-15 12:37:50 UTC) #1
Shu Chen
lgtm for input_method_persistence_unittest.cc
6 years, 4 months ago (2014-08-15 12:54:44 UTC) #2
Mr4D (OOO till 08-26)
https://codereview.chromium.org/442043002/diff/140001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/442043002/diff/140001/chrome/browser/profiles/profile_manager.cc#newcode464 chrome/browser/profiles/profile_manager.cc:464: if (logged_in_) { I was wondering about guest mode. ...
6 years, 4 months ago (2014-08-15 14:27:56 UTC) #3
dzhioev (left Google)
https://codereview.chromium.org/442043002/diff/140001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/442043002/diff/140001/chrome/browser/profiles/profile_manager.cc#newcode464 chrome/browser/profiles/profile_manager.cc:464: if (logged_in_) { On 2014/08/15 14:27:56, Mr4D wrote: > ...
6 years, 4 months ago (2014-08-15 16:11:26 UTC) #4
Jun Mukai
lgtm: message_center_settings_controller_unittest.cc
6 years, 4 months ago (2014-08-15 16:16:15 UTC) #5
Mr4D (OOO till 08-26)
Thanks! LGTM
6 years, 4 months ago (2014-08-15 16:20:29 UTC) #6
xiyuan
LGTM +asavage since this might affect the chromeos-chrome on linux. One of my debugging flow ...
6 years, 4 months ago (2014-08-15 16:38:43 UTC) #7
Jay Civelli
LGTM for chrome/test/base/testing_profile_manager.cc
6 years, 4 months ago (2014-08-15 16:48:48 UTC) #8
mattm
incident_reporting_service_unittest.cc lgtm (note you'll need to rebase again, it moved into incident_reporting/ subdirectory).
6 years, 4 months ago (2014-08-15 19:57:18 UTC) #9
dzhioev (left Google)
On 2014/08/15 16:38:43, xiyuan wrote: > LGTM > > +asavage since this might affect the ...
6 years, 4 months ago (2014-08-18 16:50:41 UTC) #10
xiyuan
On 2014/08/18 16:50:41, dzhioev wrote: > On 2014/08/15 16:38:43, xiyuan wrote: > > LGTM > ...
6 years, 4 months ago (2014-08-18 16:51:54 UTC) #11
Nikita (slow)
lgtm https://codereview.chromium.org/442043002/diff/160001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc File chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc (right): https://codereview.chromium.org/442043002/diff/160001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc#newcode80 chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc:80: } nit: drop {}
6 years, 4 months ago (2014-08-19 11:09:48 UTC) #12
dzhioev (left Google)
https://codereview.chromium.org/442043002/diff/160001/chrome/browser/chromeos/profiles/profile_helper.h File chrome/browser/chromeos/profiles/profile_helper.h (right): https://codereview.chromium.org/442043002/diff/160001/chrome/browser/chromeos/profiles/profile_helper.h#newcode122 chrome/browser/chromeos/profiles/profile_helper.h:122: std::string GetUserIdHashByUserIdForTests(const std::string& user_id) const; On 2014/08/15 16:38:43, xiyuan ...
6 years, 4 months ago (2014-08-20 20:21:36 UTC) #13
satorux1
defer to mtomasz@ for file system related changes.
6 years, 4 months ago (2014-08-21 07:18:14 UTC) #14
mtomasz
https://codereview.chromium.org/442043002/diff/180001/chrome/browser/chromeos/drive/file_system_util_unittest.cc File chrome/browser/chromeos/drive/file_system_util_unittest.cc (right): https://codereview.chromium.org/442043002/diff/180001/chrome/browser/chromeos/drive/file_system_util_unittest.cc#newcode13 chrome/browser/chromeos/drive/file_system_util_unittest.cc:13: #include "chrome/common/chrome_constants.h" The chrome_constants.h include is not used anymore. ...
6 years, 4 months ago (2014-08-22 05:43:40 UTC) #15
dzhioev (left Google)
https://codereview.chromium.org/442043002/diff/180001/chrome/browser/chromeos/drive/file_system_util_unittest.cc File chrome/browser/chromeos/drive/file_system_util_unittest.cc (right): https://codereview.chromium.org/442043002/diff/180001/chrome/browser/chromeos/drive/file_system_util_unittest.cc#newcode13 chrome/browser/chromeos/drive/file_system_util_unittest.cc:13: #include "chrome/common/chrome_constants.h" On 2014/08/22 05:43:40, mtomasz wrote: > The ...
6 years, 4 months ago (2014-08-25 17:39:11 UTC) #16
mtomasz
lgtm
6 years, 4 months ago (2014-08-26 00:50:31 UTC) #17
dzhioev (left Google)
The CQ bit was checked by dzhioev@chromium.org
6 years, 3 months ago (2014-08-26 12:11:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dzhioev@chromium.org/442043002/220001
6 years, 3 months ago (2014-08-26 12:12:10 UTC) #19
commit-bot: I haz the power
Committed patchset #12 (220001) as 716b680741cb71630f789e9fe711aa7bc5cbd295
6 years, 3 months ago (2014-08-26 13:19:21 UTC) #20
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:42:32 UTC) #21
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/0298d729c605a27f041da3c709e865d1ac607ecb
Cr-Commit-Position: refs/heads/master@{#291895}

Powered by Google App Engine
This is Rietveld 408576698