Index: chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.cc |
diff --git a/chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.cc b/chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.cc |
index 47144bc8a018e80061e14112c4264e941ea5f080..b210a773adf7b588fad305bfd843d8bf200083ce 100644 |
--- a/chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.cc |
+++ b/chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.cc |
@@ -5,7 +5,6 @@ |
#include "chrome/browser/supervised_user/chromeos/supervised_user_password_service_factory.h" |
#include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
-#include "chrome/browser/chromeos/login/users/user.h" |
#include "chrome/browser/chromeos/login/users/user_manager.h" |
#include "chrome/browser/chromeos/profiles/profile_helper.h" |
#include "chrome/browser/profiles/incognito_helpers.h" |
@@ -13,6 +12,7 @@ |
#include "chrome/browser/supervised_user/chromeos/supervised_user_password_service.h" |
#include "chrome/browser/supervised_user/supervised_user_shared_settings_service_factory.h" |
#include "components/keyed_service/content/browser_context_dependency_manager.h" |
+#include "components/user_manager/user.h" |
#include "components/user_manager/user_type.h" |
namespace chromeos { |
@@ -43,7 +43,7 @@ SupervisedUserPasswordServiceFactory:: |
KeyedService* SupervisedUserPasswordServiceFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
Profile* profile= static_cast<Profile*>(context); |
- User* user = ProfileHelper::Get()->GetUserByProfile(profile); |
+ user_manager::User* user = ProfileHelper::Get()->GetUserByProfile(profile); |
if (user->GetType() != user_manager::USER_TYPE_SUPERVISED) |
return NULL; |
SupervisedUserPasswordService* result = new SupervisedUserPasswordService(); |