Index: content/shell/shell_content_browser_client.cc |
diff --git a/content/shell/shell_content_browser_client.cc b/content/shell/shell_content_browser_client.cc |
index 8c95f624d973f9cd9797b93f6d69705d24cb9b22..401919947714ad1345ab374b2340c95d35995364 100644 |
--- a/content/shell/shell_content_browser_client.cc |
+++ b/content/shell/shell_content_browser_client.cc |
@@ -98,9 +98,7 @@ void ShellContentBrowserClient::OverrideWebkitPrefs( |
webkit_glue::WebPreferences* prefs) { |
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) |
return; |
- prefs->dom_paste_enabled = true; |
- prefs->javascript_can_access_clipboard = true; |
- prefs->allow_universal_access_from_file_urls = true; |
+ WebKitTestController::Get()->web_preferences().Apply(prefs); |
} |
void ShellContentBrowserClient::ResourceDispatcherHostCreated() { |