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; |
} |