Merge "Use WebViewFactory accessors to find experimental state"

This commit is contained in:
Jonathan Dixon
2013-07-29 18:51:32 +00:00
committed by Android (Google) Code Review

View File

@@ -1107,16 +1107,14 @@ public class DevelopmentSettings extends PreferenceFragment
private void writeExperimentalWebViewOptions() { private void writeExperimentalWebViewOptions() {
if (mExperimentalWebView != null) { if (mExperimentalWebView != null) {
SystemProperties.set(WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY, WebViewFactory.setUseExperimentalWebView(mExperimentalWebView.isChecked());
mExperimentalWebView.isChecked() ? "true" : null);
pokeSystemProperties(); pokeSystemProperties();
} }
} }
private void updateExperimentalWebViewOptions() { private void updateExperimentalWebViewOptions() {
if (mExperimentalWebView != null) { if (mExperimentalWebView != null) {
updateCheckBox(mExperimentalWebView, SystemProperties.getBoolean( updateCheckBox(mExperimentalWebView, WebViewFactory.useExperimentalWebView());
WebViewFactory.WEBVIEW_EXPERIMENTAL_PROPERTY, false));
} }
} }