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

Unified Diff: components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java

Issue 2784353002: Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: Fix tests Created 3 years, 8 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: components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java
diff --git a/components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java b/components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java
index ffb097b67f2a78519f97bdd835c7f1cca0f3edb0..b2e8ae19d8cb63222b649b251ee2cf3f4382099e 100644
--- a/components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java
+++ b/components/signin/core/browser/android/java/src/org/chromium/components/signin/ChildAccountInfoFetcher.java
@@ -69,9 +69,8 @@ public final class ChildAccountInfoFetcher {
}
private void fetch() {
- Context context = ContextUtils.getApplicationContext();
Log.d(TAG, "Checking child account status for %s", mAccount.name);
- AccountManagerHelper.get(context).checkChildAccount(mAccount, new Callback<Boolean>() {
+ AccountManagerHelper.get().checkChildAccount(mAccount, new Callback<Boolean>() {
@Override
public void onResult(Boolean isChildAccount) {
setIsChildAccount(isChildAccount);

Powered by Google App Engine
This is Rietveld 408576698