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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LocationCategory.java

Issue 2183563002: Remove Context param from LocationUtils methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update BT Device Fakes class Created 4 years, 5 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/preferences/website/LocationCategory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LocationCategory.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LocationCategory.java
index 9c83cc9889f3c09a2e70557a1ebeedf95d69123b..4c139166ebc2b58d5a7221dba00d93a144dbf0a2 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LocationCategory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/website/LocationCategory.java
@@ -9,7 +9,6 @@ import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
-import org.chromium.base.ContextUtils;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.ContentSettingsType;
import org.chromium.chrome.browser.preferences.LocationSettings;
@@ -28,8 +27,7 @@ public class LocationCategory extends SiteSettingsCategory {
@Override
protected boolean enabledGlobally() {
- return LocationUtils.getInstance().isSystemLocationSettingEnabled(
- ContextUtils.getApplicationContext());
+ return LocationUtils.getInstance().isSystemLocationSettingEnabled();
}
@Override

Powered by Google App Engine
This is Rietveld 408576698