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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java

Issue 2800833003: Revert of Android: Remove GetApplicationContext part 2 (Closed)
Patch Set: 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: chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java b/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java
index 0e15bc30cd6d356fe0c80a72a7874c71ff81d53b..0cc66e9067448c38dcb84056b403cf532d2f357b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/signin/AccountSigninView.java
@@ -129,7 +129,7 @@
public AccountSigninView(Context context, AttributeSet attrs) {
super(context, attrs);
- mAccountManagerHelper = AccountManagerHelper.get();
+ mAccountManagerHelper = AccountManagerHelper.get(getContext().getApplicationContext());
}
/**
@@ -448,14 +448,15 @@
// Ensure that the AccountTrackerService has a fully up to date GAIA id <-> email mapping,
// as this is needed for the previous account check.
- if (AccountTrackerService.get().checkAndSeedSystemAccounts()) {
+ if (AccountTrackerService.get(getContext()).checkAndSeedSystemAccounts()) {
showConfirmSigninPagePreviousAccountCheck();
} else {
- AccountTrackerService.get().addSystemAccountsSeededListener(
+ AccountTrackerService.get(getContext()).addSystemAccountsSeededListener(
new OnSystemAccountsSeededListener() {
@Override
public void onSystemAccountsSeedingComplete() {
- AccountTrackerService.get().removeSystemAccountsSeededListener(this);
+ AccountTrackerService.get(getContext())
+ .removeSystemAccountsSeededListener(this);
showConfirmSigninPagePreviousAccountCheck();
}

Powered by Google App Engine
This is Rietveld 408576698