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

Unified Diff: chrome/browser/android/signin/signin_manager_android.cc

Issue 101653006: Remove GetDefaultProfile from various Android related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/android/signin/signin_manager_android.cc
diff --git a/chrome/browser/android/signin/signin_manager_android.cc b/chrome/browser/android/signin/signin_manager_android.cc
index d6b17ac396d400a793a73ce622f08e69d9731c6b..25f7d479065c48c63ec8c4ab31dd9da3c9876ca1 100644
--- a/chrome/browser/android/signin/signin_manager_android.cc
+++ b/chrome/browser/android/signin/signin_manager_android.cc
@@ -76,7 +76,7 @@ SigninManagerAndroid::SigninManagerAndroid(JNIEnv* env, jobject obj)
java_signin_manager_.Reset(env, obj);
DCHECK(g_browser_process);
Yaron 2014/01/06 22:00:17 Actually can you drop these two DCHECKs. They seem
Mr4D (OOO till 08-26) 2014/01/07 17:12:16 Done.
DCHECK(g_browser_process->profile_manager());
- profile_ = g_browser_process->profile_manager()->GetDefaultProfile();
+ profile_ = ProfileManager::GetActiveUserProfile();
DCHECK(profile_);
}
« no previous file with comments | « chrome/browser/android/dev_tools_server.cc ('k') | chrome/browser/autofill/android/personal_data_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698