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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java

Issue 2791983003: Remove untrusted sources installation flow. (Closed)
Patch Set: Remove untrusted sources installation flow. 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/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java
index fabd8aa60e6cb44e30bcaf85d5d68e6a97546c8a..b74e80d32fa6c2d3982b6ea721dfe259857f9bc3 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/webapps/WebApkUpdateManagerTest.java
@@ -12,7 +12,6 @@ import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Color;
import android.os.Bundle;
-import android.provider.Settings;
import android.text.TextUtils;
import org.junit.Before;
@@ -236,7 +235,7 @@ public class WebApkUpdateManagerTest {
manifestData.name = NAME;
manifestData.shortName = SHORT_NAME;
- manifestData.iconUrlToMurmur2HashMap = new HashMap<String, String>();
+ manifestData.iconUrlToMurmur2HashMap = new HashMap<>();
manifestData.iconUrlToMurmur2HashMap.put(ICON_URL, ICON_MURMUR2_HASH);
manifestData.bestIconUrl = ICON_URL;
@@ -331,9 +330,6 @@ public class WebApkUpdateManagerTest {
ChromeWebApkHost.initForTesting(true);
registerWebApk(defaultManifestData(), WebApkVersion.CURRENT_SHELL_APK_VERSION);
- Settings.Secure.putInt(RuntimeEnvironment.application.getContentResolver(),
- Settings.Secure.INSTALL_NON_MARKET_APPS, 1);
-
mClock = new MockClock();
WebappDataStorage.setClockForTests(mClock);

Powered by Google App Engine
This is Rietveld 408576698