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

Unified Diff: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java

Issue 155653003: [Android WebView] Add AwResource.setResources() and setErrorPageResources(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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: android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java
diff --git a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java
index ec223aa8c847d9154b4bc2ab85f8fac59b4d535a..d42692fa918c0ca215c5874074c159c8d2a7d894 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellResourceProvider.java
@@ -8,6 +8,9 @@ import android.content.Context;
import org.chromium.android_webview.AwResource;
+/**
+ * Registers resources for the Android webview shell.
+ */
public class AwShellResourceProvider {
private static boolean sInitialized;
@@ -18,10 +21,9 @@ public class AwShellResourceProvider {
AwResource.setResources(context.getResources());
- AwResource.RAW_LOAD_ERROR = R.raw.blank_html;
- AwResource.RAW_NO_DOMAIN = R.raw.blank_html;
+ AwResource.setErrorPageResources(R.raw.blank_html, R.raw.blank_html);
- AwResource.STRING_DEFAULT_TEXT_ENCODING = R.string.test_string;
+ AwResource.setDefaultTextEncoding(R.string.test_string);
sInitialized = true;
}

Powered by Google App Engine
This is Rietveld 408576698