[Android] New params for VariationsSeedFetcher.getConnectionString
Chromium change: https://github.com/chromium/chromium/commit/fff162f502f2e7d92cb76534d2c00e1c93a1dbe4 WebView: Adding non-embedded code for Fast Variations Mitigation. In order to increase variations seed uptake speed, WebView is adding a new safe mode mitigation for this very purpose. Bug: 1395513
This commit is contained in:
+2
-3
@@ -27,15 +27,14 @@ public class BraveVariationsSeedFetcher extends VariationsSeedFetcher {
|
||||
|
||||
@VisibleForTesting
|
||||
@Override
|
||||
protected String getConnectionString(@VariationsPlatform int platform, String restrictMode,
|
||||
String milestone, String channel) {
|
||||
protected String getConnectionString(SeedFetchParameters params) {
|
||||
if (!CommandLine.getInstance().hasSwitch(VariationsSwitches.VARIATIONS_SERVER_URL)) {
|
||||
// If there is no alternative variations server specified, we still don't want to
|
||||
// connect to Google's server.
|
||||
return "";
|
||||
}
|
||||
|
||||
String urlString = super.getConnectionString(platform, restrictMode, milestone, channel);
|
||||
String urlString = super.getConnectionString(params);
|
||||
// Relacing Google's variations server with ours, but keep parameters.
|
||||
int paramsPosition = urlString.indexOf("?", 0);
|
||||
urlString =
|
||||
|
||||
Reference in New Issue
Block a user