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

Unified Diff: chrome/browser/signin/signin_global_error.cc

Issue 44083005: policy: Remove UserCloudPolicyManagerFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 2 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/signin/signin_global_error.cc
diff --git a/chrome/browser/signin/signin_global_error.cc b/chrome/browser/signin/signin_global_error.cc
index 3b31038024e0fb844b6464f6bebcb79d37f71dd0..a51d14a4da6880ad911a9cc39bee35008122adb1 100644
--- a/chrome/browser/signin/signin_global_error.cc
+++ b/chrome/browser/signin/signin_global_error.cc
@@ -148,7 +148,7 @@ std::vector<string16> SigninGlobalError::GetBubbleViewMessages() {
// If the user isn't signed in, no need to display an error bubble.
SigninManagerBase* signin_manager =
- SigninManagerFactory::GetForProfileIfExists(profile_);
+ SigninManagerFactory::GetForBrowserContextIfExists(profile_);
if (signin_manager) {
std::string username = signin_manager->GetAuthenticatedUsername();
if (username.empty())

Powered by Google App Engine
This is Rietveld 408576698