| Index: chrome/browser/chrome_browser_main.cc
|
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
|
| index e85defbf253432a1ef0d97489854747ba89b49f5..7f857ec3c6b36ad3aabc62330238b75bac5ea024 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -504,6 +504,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,
|
| @@ -559,9 +560,8 @@ void OptionallyRunChromeOSLoginManager(const CommandLine& parsed_command_line,
|
| } else {
|
| 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);
|
| + // restore Sync.
|
| + chromeos::LoginUtils::Get()->RestoreAuthenticationSession(profile);
|
| }
|
| }
|
| }
|
|
|