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

Unified Diff: chrome/browser/supervised_user/child_accounts/child_account_service_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
Index: chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc b/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
index 8b7c5af28bbd77c8e765a134a151e847ceeb6b18..fd915b141f519e0cd949c2a639c40dca71696b8f 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service_android.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/supervised_user/child_accounts/child_account_service_android.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/supervised_user/child_accounts/child_account_service.h"
#include "chrome/browser/supervised_user/child_accounts/child_account_service_factory.h"
@@ -16,7 +17,7 @@ jboolean IsChildAccountDetectionEnabled(JNIEnv* env, jobject obj) {
void OnChildAccountSigninComplete(JNIEnv* env, jobject obj) {
VLOG(1) << "OnChildAccountSigninComplete";
- Profile* profile = ProfileManager::GetLastUsedProfile();
+ Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
ChildAccountServiceFactory::GetForProfile(profile)->SetIsChildAccount(true);
}
« no previous file with comments | « chrome/browser/status_icons/desktop_notification_balloon.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698