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

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

Issue 2496443002: Disable WebAPK updates when "installation from unknown sources" is disabled (Closed)
Patch Set: Merge branch 'master' into disable_update_unsigned_sources Created 4 years, 1 month 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ba78ec5985e99f0015c2d807e11db7c48ff0ba1..1b6128bc2e9b9c64a1733fec19370cac0ae7ce92 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,6 +12,7 @@ import static org.chromium.chrome.browser.webapps.ManifestUpgradeDetector.Fetche
import android.graphics.Bitmap;
import android.os.Bundle;
+import android.provider.Settings;
import org.junit.Before;
import org.junit.Test;
@@ -202,6 +203,9 @@ public class WebApkUpdateManagerTest {
ContextUtils.initApplicationContextForTests(RuntimeEnvironment.application);
CommandLine.init(null);
+ Settings.Secure.putInt(RuntimeEnvironment.application.getContentResolver(),
+ Settings.Secure.INSTALL_NON_MARKET_APPS, 1);
+
mClock = new MockClock();
WebappDataStorage.setClockForTests(mClock);
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/webapps/WebApkUpdateManager.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698