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

Unified Diff: chrome/browser/profiles/profile_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/profiles/avatar_menu_actions_desktop.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_android.cc
diff --git a/chrome/browser/profiles/profile_android.cc b/chrome/browser/profiles/profile_android.cc
index 79369d7ca4dacb9bca27b4a418f46d7ab810e21f..32dec186d32dbf6b678c409784913a5a432da598 100644
--- a/chrome/browser/profiles/profile_android.cc
+++ b/chrome/browser/profiles/profile_android.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/profiles/profile_android.h"
#include "base/android/jni_android.h"
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_destroyer.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -49,7 +50,7 @@ bool ProfileAndroid::RegisterProfileAndroid(JNIEnv* env) {
// static
jobject ProfileAndroid::GetLastUsedProfile(JNIEnv* env, jclass clazz) {
- Profile* profile = ProfileManager::GetLastUsedProfile();
+ Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
if (profile == NULL) {
NOTREACHED() << "Profile not found.";
return NULL;
« no previous file with comments | « chrome/browser/profiles/avatar_menu_actions_desktop.cc ('k') | chrome/browser/profiles/profile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698