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

Unified Diff: content/shell/shell_render_process_observer.cc

Issue 11316244: [content shell] add support for a testRunner.setXSSAuditorEnabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 1 month 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
« no previous file with comments | « content/shell/shell_messages.h ('k') | content/shell/shell_webpreferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_render_process_observer.cc
diff --git a/content/shell/shell_render_process_observer.cc b/content/shell/shell_render_process_observer.cc
index ec26b6d978a9299a6dc4a043cbd0bcc12a2362a1..356ddc5965042b844b064a4278469b4798fbd7bd 100644
--- a/content/shell/shell_render_process_observer.cc
+++ b/content/shell/shell_render_process_observer.cc
@@ -9,6 +9,7 @@
#include "content/public/renderer/render_thread.h"
#include "content/shell/shell_messages.h"
#include "content/shell/shell_switches.h"
+#include "content/shell/webkit_test_runner.h"
#include "content/shell/webkit_test_runner_bindings.h"
#include "webkit/glue/webkit_glue.h"
#include "webkit/support/gc_extension.h"
@@ -89,6 +90,7 @@ bool ShellRenderProcessObserver::OnControlMessageReceived(
void ShellRenderProcessObserver::OnResetAll() {
test_interfaces_->resetAll();
if (main_render_view_) {
+ WebKitTestRunner::Get(main_render_view_)->Reset();
WebTestingSupport::resetInternalsObject(
main_render_view_->GetWebView()->mainFrame());
}
« no previous file with comments | « content/shell/shell_messages.h ('k') | content/shell/shell_webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698