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

Unified Diff: chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.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/ui/webui/local_discovery/local_discovery_ui_handler.cc
diff --git a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
index d1fafa64026009e4ff0799d6468756d76be3ff10..5adc3695d4b1aa72ffece1bdca8d85a7ef307337 100644
--- a/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
+++ b/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc
@@ -477,7 +477,7 @@ void LocalDiscoveryUIHandler::SetIsVisible(bool visible) {
std::string LocalDiscoveryUIHandler::GetSyncAccount() {
Profile* profile = Profile::FromWebUI(web_ui());
SigninManagerBase* signin_manager =
- SigninManagerFactory::GetForProfileIfExists(profile);
+ SigninManagerFactory::GetForBrowserContextIfExists(profile);
if (!signin_manager) {
return "";

Powered by Google App Engine
This is Rietveld 408576698