Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: content/shell/webkit_test_controller.cc

Issue 11565036: [content shell] use WebTestRunner::WebPreferences for layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/webkit_test_controller.cc
diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
index 1222c2240ce07c858b9e8d71f0ce0e91d37eeb2d..858e0d968c3d33c2608ad9d89b29f43504145e79 100644
--- a/content/shell/webkit_test_controller.cc
+++ b/content/shell/webkit_test_controller.cc
@@ -18,6 +18,7 @@
#include "content/shell/shell_content_browser_client.h"
#include "content/shell/shell_messages.h"
#include "content/shell/shell_switches.h"
+#include "content/shell/shell_webpreferences.h"
#include "webkit/fileapi/isolated_context.h"
#include "webkit/support/webkit_support_gfx.h"
@@ -186,7 +187,7 @@ bool WebKitTestController::ResetAfterLayoutTest() {
is_printing_ = false;
should_stay_on_page_after_handling_before_unload_ = false;
wait_until_done_ = false;
- prefs_ = ShellWebPreferences();
+ prefs_.reset(new ShellWebPreferences);
{
base::AutoLock lock(lock_);
can_open_windows_ = false;
@@ -361,7 +362,7 @@ void WebKitTestController::OnPrintMessage(const std::string& message) {
void WebKitTestController::OnOverridePreferences(
const ShellWebPreferences& prefs) {
- prefs_ = prefs;
+ *prefs_.get() = prefs;
}
void WebKitTestController::OnNotifyDone() {

Powered by Google App Engine
This is Rietveld 408576698