Adding UserManager checks so ProfileManager can be used in tests.
commit725d488cc3da1b32b909c9f99089575430fa402f
authormichaelpg@chromium.org <michaelpg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Dec 2013 23:42:10 +0000 (12 23:42 +0000)
committermichaelpg@chromium.org <michaelpg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 12 Dec 2013 23:42:10 +0000 (12 23:42 +0000)
treea5dcebf487f0c8984403fb5b9135d42e43694b7d
parent2b08444a321d4b9ecf97fa7c50141b2bd115c3d5
Adding UserManager checks so ProfileManager can be used in tests.

Changing GetDefaultProfile calls to Get*UserProfile means classes will access UserManager, which may not exist in tests of the old behavior.

BUG=322682
R=skuhne@chromium.org,rlp@chromium.org,dpolukhin@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240480 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/profiles/profile_manager.cc