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

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

Issue 2342473003: [MD settings] site details url below Site details subpage title (Closed)
Patch Set: merge with master 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
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).

Powered by Google App Engine
This is Rietveld 408576698