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

Unified Diff: chrome/browser/android/password_ui_view_android.cc

Issue 1128173005: Clean up ProfileManager interface. Base URL: https://chromium.googlesource.com/chromium/src@issue479309
Patch Set: sync Created 5 years, 7 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/android/dev_tools_server.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/android/dev_tools_server.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698