1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.android_webview.shell;
7 import android.content.Context;
9 import org.chromium.android_webview.AwResource;
12 * Registers resources for the Android webview shell.
14 public class AwShellResourceProvider {
15 private static boolean sInitialized;
17 public static void registerResources(Context context) {
22 AwResource.setResources(context.getResources());
24 AwResource.setErrorPageResources(R.raw.error, R.raw.blank_html);
26 AwResource.setDefaultTextEncoding(R.string.default_encoding);