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

Issue 23967015: Use multi-profile mount point by default after browser crash and in Guest session. (Closed)

Created:
7 years, 3 months ago by Nikita (slow)
Modified:
7 years, 3 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

Use multi-profile mount point by default after browser crash and in Guest session. Add support for legacy values for --login-profile switch: user / stub-user. These will be added to user data dir as is (i.e. /home/chronos/user) unless --multi-profiles switch is added. All other values passed to --login-profile will be treated as multi-profiles mount point and "u-" prefix will be added to them (i.e. /home/chronos/u-user_id_hash_string). Supported configurations after this change: * --login-profile=user, no --multi-profiles switch Default configuration, used after session is started from login screen /home/chronos/user profile dir is used * --login-profile=[hash], no --multi-profiles switch * --login-profile=hash --multi-profiles Passed after browser crash inside session + on relaunching Chrome in Guest session. Chrome will add "u-" prefix. /home/chronos/u-hash profile dir is used * --login-profile=user --multi-profiles Session is started from sign in screen login-profile switch is ignored, /home/chronos/u-hash profile dir is used Depends on session_manager change which will be committed after this change: https://chromium-review.googlesource.com/#/c/169850/ BUG=294184 TEST=manually, w&w/o --multi-profiles: guest session, browser crash inside session NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=224130

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 4

Patch Set 3 : change UserManagerImpl::GetUserProfileDir code #

Patch Set 4 : handle test-user profile as well #

Total comments: 2

Patch Set 5 : fix ProfileManagerTest,InputMethodPersistenceTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -19 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/user_manager_impl.cc View 1 2 3 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/profiles/profile_helper.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 1 chunk +12 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 chunk +6 lines, -6 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Nikita (slow)
7 years, 3 months ago (2013-09-18 14:33:10 UTC) #1
Dmitry Polukhin
https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h File chrome/browser/chromeos/profiles/profile_helper.h (right): https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h#newcode67 chrome/browser/chromeos/profiles/profile_helper.h:67: base::FilePath GetUserProfileDir(const std::string& user_id_hash); I made similar function UserManager::GetUserProfileDir, ...
7 years, 3 months ago (2013-09-18 15:46:06 UTC) #2
Nikita (slow)
https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h File chrome/browser/chromeos/profiles/profile_helper.h (right): https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h#newcode67 chrome/browser/chromeos/profiles/profile_helper.h:67: base::FilePath GetUserProfileDir(const std::string& user_id_hash); On 2013/09/18 15:46:06, Dmitry Polukhin ...
7 years, 3 months ago (2013-09-18 16:22:55 UTC) #3
Dmitry Polukhin
LGTM the approach but see comment + need to file issue to clean up after ...
7 years, 3 months ago (2013-09-18 16:48:43 UTC) #4
Nikita (slow)
PTAL +sail@ for profile_manager.cc review https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h File chrome/browser/chromeos/profiles/profile_helper.h (right): https://codereview.chromium.org/23967015/diff/6001/chrome/browser/chromeos/profiles/profile_helper.h#newcode67 chrome/browser/chromeos/profiles/profile_helper.h:67: base::FilePath GetUserProfileDir(const std::string& user_id_hash); ...
7 years, 3 months ago (2013-09-18 18:04:37 UTC) #5
Dmitry Polukhin
lgtm
7 years, 3 months ago (2013-09-18 18:06:29 UTC) #6
sail
profies/* LGTM https://codereview.chromium.org/23967015/diff/22001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/23967015/diff/22001/chrome/browser/profiles/profile_manager.cc#newcode320 chrome/browser/profiles/profile_manager.cc:320: // legacy --login-profile=user switch and enable multi-profiles ...
7 years, 3 months ago (2013-09-18 18:17:20 UTC) #7
Nikita (slow)
+nona@ for chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc review https://codereview.chromium.org/23967015/diff/22001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/23967015/diff/22001/chrome/browser/profiles/profile_manager.cc#newcode320 chrome/browser/profiles/profile_manager.cc:320: // legacy --login-profile=user switch and ...
7 years, 3 months ago (2013-09-19 08:17:34 UTC) #8
Seigo Nonaka
lgtm lgtm for chrome/browser/chromeos/input_method/input_method_persistence_unittest.cc
7 years, 3 months ago (2013-09-19 08:21:40 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/23967015/3008
7 years, 3 months ago (2013-09-19 11:04:03 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=26337
7 years, 3 months ago (2013-09-19 11:17:07 UTC) #11
Nikita (slow)
+jochen@ for owner's lgtm in chrome/common/chrome_constants.cc chrome/common/chrome_constants.h chrome/common/logging_chrome.cc
7 years, 3 months ago (2013-09-19 11:29:08 UTC) #12
jochen (gone - plz use gerrit)
lgtm
7 years, 3 months ago (2013-09-19 12:25:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/23967015/3008
7 years, 3 months ago (2013-09-19 12:28:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nkostylev@chromium.org/23967015/3008
7 years, 3 months ago (2013-09-19 14:39:47 UTC) #15
commit-bot: I haz the power
7 years, 3 months ago (2013-09-19 14:40:02 UTC) #16
Message was sent while issue was closed.
Change committed as 224130

Powered by Google App Engine
This is Rietveld 408576698