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

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

Issue 2337843003: Speculatively deflake some web app tests on low-end Lollipop. (Closed)
Patch Set: Address nits Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenIconTest.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java
index 5170e54ef1dbc7267d91735e668b99e4cbcf4e21..2cf9e198c5b5c4ab9a9704f3bc995379603e2207 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappDataStorage.java
@@ -265,6 +265,16 @@ public class WebappDataStorage {
}
/**
+ * Update the information associated with the web app with the specified data. Used for testing.
+ * @param splashScreenImage The image encoded as a string which should be shown on the splash
+ * screen of the web app.
+ */
+ @VisibleForTesting
+ void updateSplashScreenImageForTests(String splashScreenImage) {
+ mPreferences.edit().putString(KEY_SPLASH_ICON, splashScreenImage).apply();
+ }
+
+ /**
* Creates and returns a web app launch intent from the data stored in this object. Must not be
* called on the UI thread as a Bitmap is decoded from a String (a potentially expensive
* operation).
« no previous file with comments | « no previous file | chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenIconTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698