Index: chrome/browser/android/password_ui_view_android.cc |
diff --git a/chrome/browser/android/password_ui_view_android.cc b/chrome/browser/android/password_ui_view_android.cc |
index b079b22c5c7abc7066c03790c52cd2630cb4bf69..0bc206d613c78049e88ecab1ed3f8405440838ce 100644 |
--- a/chrome/browser/android/password_ui_view_android.cc |
+++ b/chrome/browser/android/password_ui_view_android.cc |
@@ -9,6 +9,7 @@ |
#include "base/command_line.h" |
#include "base/metrics/field_trial.h" |
#include "base/prefs/pref_service.h" |
+#include "chrome/browser/browser_process.h" |
#include "chrome/browser/profiles/profile_manager.h" |
#include "chrome/browser/sync/profile_sync_service.h" |
#include "chrome/browser/sync/profile_sync_service_factory.h" |
@@ -33,7 +34,7 @@ PasswordUIViewAndroid::~PasswordUIViewAndroid() {} |
void PasswordUIViewAndroid::Destroy(JNIEnv*, jobject) { delete this; } |
Profile* PasswordUIViewAndroid::GetProfile() { |
- return ProfileManager::GetLastUsedProfile(); |
+ return g_browser_process->profile_manager()->GetLastUsedProfile(); |
} |
void PasswordUIViewAndroid::ShowPassword( |
@@ -121,7 +122,7 @@ static jboolean ShouldUseSmartLockBranding( |
JNIEnv* env, jclass) { |
const ProfileSyncService* sync_service = |
ProfileSyncServiceFactory::GetForProfile( |
- ProfileManager::GetLastUsedProfile()); |
+ g_browser_process->profile_manager()->GetLastUsedProfile()); |
return password_bubble_experiment::IsSmartLockBrandingEnabled(sync_service); |
} |