Index: webkit/tools/test_shell/layout_test_controller.cc |
diff --git a/webkit/tools/test_shell/layout_test_controller.cc b/webkit/tools/test_shell/layout_test_controller.cc |
index be19c9533c590104dec5ffe7ab9c54a0796d7197..fbfda9f6a134dc4e64fbb9ab0a8cef516692465a 100644 |
--- a/webkit/tools/test_shell/layout_test_controller.cc |
+++ b/webkit/tools/test_shell/layout_test_controller.cc |
@@ -894,7 +894,7 @@ void LayoutTestController::overridePreference( |
else if (key == "WebKitMinimumLogicalFontSize") |
preferences->minimum_logical_font_size = CppVariantToInt32(value); |
else if (key == "WebKitDefaultTextEncodingName") |
- preferences->default_encoding = CppVariantToWstring(value); |
+ preferences->default_encoding = value.ToString(); |
else if (key == "WebKitJavaScriptEnabled") |
preferences->javascript_enabled = CppVariantToBool(value); |
else if (key == "WebKitWebSecurityEnabled") |