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

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

Issue 2352943003: Remove the context argument from all WebappRegistry/WebappDataStorage methods. (Closed)
Patch Set: Address comments 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/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenTest.java
diff --git a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenTest.java b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenTest.java
index 6951ff945997a472fd3aa629acf7ea4bb453f43c..1d2271e8ecf5ba03fb46c440cdb51815c68b381c 100644
--- a/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenTest.java
+++ b/chrome/android/javatests/src/org/chromium/chrome/browser/webapps/WebappSplashScreenTest.java
@@ -237,7 +237,7 @@ public class WebappSplashScreenTest extends WebappActivityTestBase {
R.dimen.webapp_splash_image_size_threshold);
int bitmapSize = thresholdSize + 1;
Bitmap splashBitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888);
- WebappDataStorage.open(context, WEBAPP_ID).updateSplashScreenImage(splashBitmap);
+ WebappDataStorage.open(WEBAPP_ID).updateSplashScreenImage(splashBitmap);
startWebappActivity(createIntent());
ViewGroup splashScreen = waitUntilSplashScreenAppears();
@@ -265,7 +265,7 @@ public class WebappSplashScreenTest extends WebappActivityTestBase {
int bitmapSize = context.getResources().getDimensionPixelSize(
R.dimen.webapp_splash_image_size_minimum);
Bitmap splashBitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888);
- WebappDataStorage.open(context, WEBAPP_ID).updateSplashScreenImage(splashBitmap);
+ WebappDataStorage.open(WEBAPP_ID).updateSplashScreenImage(splashBitmap);
startWebappActivity(createIntent());
ViewGroup splashScreen = waitUntilSplashScreenAppears();
@@ -292,7 +292,7 @@ public class WebappSplashScreenTest extends WebappActivityTestBase {
int bitmapSize = context.getResources().getDimensionPixelSize(
R.dimen.webapp_splash_image_size_minimum) - 1;
Bitmap splashBitmap = Bitmap.createBitmap(bitmapSize, bitmapSize, Bitmap.Config.ARGB_8888);
- WebappDataStorage.open(context, WEBAPP_ID).updateSplashScreenImage(splashBitmap);
+ WebappDataStorage.open(WEBAPP_ID).updateSplashScreenImage(splashBitmap);
Intent intent = createIntent();
intent.putExtra(ShortcutHelper.EXTRA_IS_ICON_GENERATED, true);

Powered by Google App Engine
This is Rietveld 408576698