| Index: chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
|
| diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
|
| index b821530415d35583a37ad5278033d1a557ba44ea..f39fd8a024028ddc4154b3d372c177d2edc3dbe0 100644
|
| --- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
|
| +++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.cc
|
| @@ -567,13 +567,13 @@ bool InlineLoginHandlerImpl::CanOffer(Profile* profile,
|
| // If some profile, not just the current one, is already connected to this
|
| // account, don't show the infobar.
|
| if (g_browser_process && !same_email) {
|
| - ProfileManager* manager = g_browser_process->profile_manager();
|
| - if (manager) {
|
| - ProfileInfoCache& cache = manager->GetProfileInfoCache();
|
| + ProfileManager* profile_manager = g_browser_process->profile_manager();
|
| + if (profile_manager) {
|
| + ProfileInfoCache& cache = profile_manager->GetProfileInfoCache();
|
| for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) {
|
| - std::string current_email =
|
| + std::string profile_email =
|
| base::UTF16ToUTF8(cache.GetUserNameOfProfileAtIndex(i));
|
| - if (gaia::AreEmailsSame(email, current_email)) {
|
| + if (gaia::AreEmailsSame(email, profile_email)) {
|
| if (error_message) {
|
| error_message->assign(
|
| l10n_util::GetStringUTF8(IDS_SYNC_USER_NAME_IN_USE_ERROR));
|
|
|