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

Issue 1094009: Ensure that data doesn't leak between users on cros chrome crash. (Closed)

Created:
10 years, 9 months ago by DaveMoore
Modified:
9 years, 7 months ago
Reviewers:
Will Drewry, sky
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

We had a problem where if chrome crashed on cros and was relaunched it would always run with the Default profile. This meant that two different users could see the same data...a big problem. We patched in the OS by deleting the profile directory each time but this is the right fix. When the session_manager reruns Chrome on a crash it will now pass a new flag (--login-user). Chrome uses this and ensures that the profile dir (specified by --login-profile) is mounted as an encrypted drive. If this flag isn't specified then Chrome uses the Default profile, but in incognito mode so no data is written. BUG=chromiumos:1967 TEST=Login to chromeos as user1, in a terminal kill the browser process, chrome relaunches, log into gmail, sign out (using menu or power button). Login as user2, kill browser process, chrome relaunches, go to gmail. Ensure that user1 isn't logged in. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42279

Patch Set 1 #

Total comments: 1

Patch Set 2 : Was returning OTR profile all the time #

Total comments: 1

Patch Set 3 : Make tests not use OTR Profile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -45 lines) Patch
M chrome/browser/browser_main.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/cros/cryptohome_library.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/account_screen.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/google_authenticator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/process_singleton_linux.cc View 1 chunk +1 line, -17 lines 0 comments Download
M chrome/browser/process_singleton_win.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/profile_manager.h View 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/profile_manager.cc View 1 2 4 chunks +47 lines, -14 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/in_process_browser_test.cc View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/test/ui/ui_test.cc View 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
DaveMoore
10 years, 9 months ago (2010-03-21 23:07:52 UTC) #1
Will Drewry
LGTM (Nice to see the OTR decision move into the profile manager code) It's the ...
10 years, 9 months ago (2010-03-22 15:34:23 UTC) #2
sky
LGTM http://codereview.chromium.org/1094009/diff/5001/6008 File chrome/browser/profile_manager.cc (right): http://codereview.chromium.org/1094009/diff/5001/6008#newcode47 chrome/browser/profile_manager.cc:47: Profile* ProfileManager::GetDefaultProfile() { Order of methods in .cc ...
10 years, 9 months ago (2010-03-22 17:04:39 UTC) #3
DaveMoore
Please take another look. This change was made to get browser and ui tests passing. ...
10 years, 9 months ago (2010-03-22 22:18:50 UTC) #4
sky
10 years, 9 months ago (2010-03-22 22:37:07 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698