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

Unified Diff: chrome/browser/ui/autofill/chrome_autofill_client.cc

Issue 1011503004: Autofill card unmasking - never store locally in incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: inline and format Created 5 years, 9 months 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/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);

Powered by Google App Engine
This is Rietveld 408576698