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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 8588006: Eliminate CrosLibrary::EnsureLoaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 09bd84b1041a81351e07d8abf64aae6498b260aa..3ba09cfbd702edd3332058d2b3b7de4636e3ae6c 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -640,7 +640,7 @@ void LoginUtilsImpl::PrepareProfile(
VLOG(1) << "Completing login for " << username;
- if (CrosLibrary::Get()->EnsureLoaded()) {
+ if (CrosLibrary::Get()->libcros_loaded()) {
satorux1 2011/11/16 23:51:34 IsRunningOnChrome() instead, or remove it? The co
stevenjb 2011/11/17 00:23:33 I'm not sure what might break with login / tests i
btl->AddLoginTimeMarker("StartSession-Start", false);
DBusThreadManager::Get()->GetSessionManagerClient()->StartSession(
username);
@@ -805,7 +805,7 @@ void LoginUtilsImpl::OnProfileCreated(Profile* user_profile, Status status) {
// Own TPM device if, for any reason, it has not been done in EULA
// wizard screen.
- if (CrosLibrary::Get()->EnsureLoaded()) {
+ if (CrosLibrary::Get()->libcros_loaded()) {
satorux1 2011/11/16 23:51:34 ditto.
stevenjb 2011/11/17 00:23:33 ditto.
CryptohomeLibrary* cryptohome = CrosLibrary::Get()->GetCryptohomeLibrary();
btl->AddLoginTimeMarker("TPMOwn-Start", false);
if (cryptohome->TpmIsEnabled() && !cryptohome->TpmIsBeingOwned()) {
@@ -923,7 +923,7 @@ void LoginUtilsImpl::CompleteOffTheRecordLogin(const GURL& start_url) {
UserManager::Get()->GuestUserLoggedIn();
- if (CrosLibrary::Get()->EnsureLoaded()) {
+ if (CrosLibrary::Get()->libcros_loaded()) {
// Session Manager may kill the chrome anytime after this point.
// Write exit_cleanly and other stuff to the disk here.
g_browser_process->EndSession();
@@ -1098,7 +1098,7 @@ class WarmingObserver : public NetworkLibrary::NetworkManagerObserver {
};
void LoginUtilsImpl::PrewarmAuthentication() {
- if (CrosLibrary::Get()->EnsureLoaded()) {
+ if (CrosLibrary::Get()->libcros_loaded()) {
NetworkLibrary *network = CrosLibrary::Get()->GetNetworkLibrary();
if (network->Connected()) {
const int kConnectionsNeeded = 1;

Powered by Google App Engine
This is Rietveld 408576698