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

Unified Diff: chrome/browser/ui/sync/one_click_signin_helper.cc

Issue 17962003: Fix regression: only clear sign-in process for navigations in that process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « chrome/browser/signin/signin_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/sync/one_click_signin_helper.cc
diff --git a/chrome/browser/ui/sync/one_click_signin_helper.cc b/chrome/browser/ui/sync/one_click_signin_helper.cc
index 908536595effebde12549de04b900c7422b06d8e..b614c933e5ad62218d83843cc6cea13e84cfb19a 100644
--- a/chrome/browser/ui/sync/one_click_signin_helper.cc
+++ b/chrome/browser/ui/sync/one_click_signin_helper.cc
@@ -1001,7 +1001,8 @@ void OneClickSigninHelper::DidNavigateMainFrame(
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
SigninManager* manager = profile ?
SigninManagerFactory::GetForProfile(profile) : NULL;
- if (manager)
+ int process_id = web_contents()->GetRenderProcessHost()->GetID();
+ if (manager && manager->IsSigninProcess(process_id))
manager->ClearSigninProcess();
}
}
« no previous file with comments | « chrome/browser/signin/signin_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698