summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile_manager.cc
diff options
context:
space:
mode:
authorzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 23:44:24 +0000
committerzelidrag@chromium.org <zelidrag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 23:44:24 +0000
commit62c7ef3ebecbdf274c85b0bbd64be3187e39b32f (patch)
treed17ca2a8f18aab2b3f28974561ee8bd039b0745c /chrome/browser/profile_manager.cc
parent9e9e55c35954a06b68d5e62a27fa1ea60675d6f2 (diff)
downloadchromium_src-62c7ef3ebecbdf274c85b0bbd64be3187e39b32f.zip
chromium_src-62c7ef3ebecbdf274c85b0bbd64be3187e39b32f.tar.gz
chromium_src-62c7ef3ebecbdf274c85b0bbd64be3187e39b32f.tar.bz2
Mocks for all libcros elements. Added library registry object that provides access to all *Libray classes that used to be singletons. This registry adds an indirection layer that will let is replace the actual objects with mocks during test runs.
BUG=chromium-os:2026 TEST=none Review URL: http://codereview.chromium.org/1142005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42405 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profile_manager.cc')
-rw-r--r--chrome/browser/profile_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/profile_manager.cc b/chrome/browser/profile_manager.cc
index 6699c7a..38283891 100644
--- a/chrome/browser/profile_manager.cc
+++ b/chrome/browser/profile_manager.cc
@@ -227,12 +227,12 @@ void ProfileManager::Observe(
const NotificationDetails& details) {
#if defined(OS_CHROMEOS)
if (type == NotificationType::LOGIN_USER_CHANGED) {
- CHECK(chromeos::CrosLibrary::EnsureLoaded());
+ CHECK(chromeos::CrosLibrary::Get()->EnsureLoaded());
// If we don't have a mounted profile directory we're in trouble.
// TODO(davemoore) Once we have better api this check should ensure that
// our profile directory is the one that's mounted, and that it's mounted
// as the current user.
- CHECK(chromeos::CryptohomeLibrary::Get()->IsMounted());
+ CHECK(chromeos::CrosLibrary::Get()->GetCryptohomeLibrary()->IsMounted());
logged_in_ = true;
}
#endif