Index: chrome/browser/ui/autofill/chrome_autofill_client.cc |
diff --git a/chrome/browser/ui/autofill/chrome_autofill_client.cc b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
index 173f3bf3badb1196b5be31e00b91519a3992a11d..c13fa9789d49f6968722c15ddc6fa6b212351c14 100644 |
--- a/chrome/browser/ui/autofill/chrome_autofill_client.cc |
+++ b/chrome/browser/ui/autofill/chrome_autofill_client.cc |
@@ -107,7 +107,8 @@ PrefService* ChromeAutofillClient::GetPrefs() { |
IdentityProvider* ChromeAutofillClient::GetIdentityProvider() { |
if (!identity_provider_) { |
Profile* profile = |
- Profile::FromBrowserContext(web_contents()->GetBrowserContext()); |
+ Profile::FromBrowserContext(web_contents()->GetBrowserContext()) |
+ ->GetOriginalProfile(); |
LoginUIService* login_service = nullptr; |
#if !defined(OS_ANDROID) |
login_service = LoginUIServiceFactory::GetForProfile(profile); |