Profile::IsGuestSession is set on init, not based on checking Path.
commit1f090b42b385a04b3d9abd5a588a721d48fa86e0
authormlerman <mlerman@chromium.org>
Thu, 15 Jan 2015 16:26:18 +0000 (15 08:26 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 15 Jan 2015 16:27:00 +0000 (15 16:27 +0000)
tree0ca15a1d740d51c1e5c3a28061c3ea987bd8b93d
parente3f5d8b272ccabcfe3b102d0a167b9543029782f
Profile::IsGuestSession is set on init, not based on checking Path.

The Profile::IsGuestSession will be somewhat faster for not having
to test the Path against the user_data_dir + guest_path each time. The
method can also now be called from any thread.

This is a prelude to additional work to be done against bug 445036,
where the Profile will need to be tested for Guest status during
ProfileManager destruction, which means
ProfileManager::GetGuestSessionPath cannot be called.

BUG=445036

Review URL: https://codereview.chromium.org/849703002

Cr-Commit-Position: refs/heads/master@{#311678}
chrome/browser/profiles/off_the_record_profile_impl.cc
chrome/browser/profiles/profile.cc
chrome/browser/profiles/profile.h
chrome/browser/profiles/profile_impl.cc
chrome/test/base/testing_profile.cc