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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.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: chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java b/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
index 9afca1572eee57523edb55f652321f585cd52629..8926478adf010faeb43b60a6cb5723137541a4c9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/util/FeatureUtilities.java
@@ -89,7 +89,7 @@ public class FeatureUtilities {
@VisibleForTesting
static boolean hasGoogleAccountAuthenticator(Context context) {
if (sHasGoogleAccountAuthenticator == null) {
- AccountManagerHelper accountHelper = AccountManagerHelper.get(context);
+ AccountManagerHelper accountHelper = AccountManagerHelper.get();
sHasGoogleAccountAuthenticator = accountHelper.hasGoogleAccountAuthenticator();
}
return sHasGoogleAccountAuthenticator;
@@ -97,7 +97,7 @@ public class FeatureUtilities {
@VisibleForTesting
static boolean hasGoogleAccounts(Context context) {
- return AccountManagerHelper.get(context).hasGoogleAccounts();
+ return AccountManagerHelper.get().hasGoogleAccounts();
}
@SuppressLint("InlinedApi")

Powered by Google App Engine
This is Rietveld 408576698