| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index 246e16794b4b459d941a1409e88b474f925fcd96..3c89e785a33947e5755ec9714b5f13fac81965f1 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -484,6 +484,7 @@ class StubLogin : public chromeos::LoginStatusConsumer,
|
| if (!profile_prepared_) {
|
| // Will call OnProfilePrepared in the end.
|
| chromeos::LoginUtils::Get()->PrepareProfile(username,
|
| + std::string(),
|
| password,
|
| credentials,
|
| pending_requests,
|
| @@ -540,8 +541,7 @@ void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line,
|
| if (!parsed_command_line.HasSwitch(switches::kTestName)) {
|
| // We did not log in (we crashed or are debugging), so we need to
|
| // set the user name for sync.
|
| - chromeos::LoginUtils::Get()->RestoreAuthenticationSession(
|
| - chromeos::UserManager::Get()->logged_in_user().email(), profile);
|
| + chromeos::LoginUtils::Get()->RestoreAuthenticationSession(profile);
|
| }
|
| }
|
| }
|
|
|