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

Unified Diff: components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java

Issue 2810863003: Android: Remove GetApplicationContext: components/ (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/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java
diff --git a/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java b/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java
index 3c696771fbabb131a0d52a26dea20a6910d176e1..b02c6f1adf8d27000ab71e6a0838fbf1c3162402 100644
--- a/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java
+++ b/components/variations/android/java/src/org/chromium/components/variations/firstrun/VariationsSeedFetcher.java
@@ -103,7 +103,7 @@ public class VariationsSeedFetcher {
// Note that VariationsSeedBridge.hasNativePref() is a pure Java function, reading an
// Android preference that is set when the seed is fetched by the native code.
if (prefs.getBoolean(VARIATIONS_INITIALIZED_PREF, false)
- || VariationsSeedBridge.hasNativePref(context)) {
+ || VariationsSeedBridge.hasNativePref()) {
return;
}
downloadContent(context, restrictMode);
@@ -155,7 +155,7 @@ public class VariationsSeedFetcher {
String date = getHeaderFieldOrEmpty(connection, "Date");
boolean isGzipCompressed = getHeaderFieldOrEmpty(connection, "IM").equals("gzip");
VariationsSeedBridge.setVariationsFirstRunSeed(
- context, rawSeed, signature, country, date, isGzipCompressed);
+ rawSeed, signature, country, date, isGzipCompressed);
recordSeedFetchTime(SystemClock.elapsedRealtime() - startTimeMillis);
} catch (SocketTimeoutException e) {
recordFetchResultOrCode(SEED_FETCH_RESULT_TIMEOUT);

Powered by Google App Engine
This is Rietveld 408576698