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

Unified Diff: content/shell/webkit_test_controller.cc

Issue 14110011: Revert "[content shell] gracefully deal with process switches" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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 | « build/android/pylib/gtest/filter/content_browsertests_disabled ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/webkit_test_controller.cc
diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc
index f82a1c42e8a3b67f0f80f2c33e51c5c1f165ac5c..eaa7b12aa8894fabd5066542bdf8b4f0cd1cf969 100644
--- a/content/shell/webkit_test_controller.cc
+++ b/content/shell/webkit_test_controller.cc
@@ -21,7 +21,6 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/render_widget_host_view.h"
-#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "content/shell/shell.h"
#include "content/shell/shell_browser_context.h"
@@ -214,15 +213,6 @@ bool WebKitTestController::PrepareForLayoutTest(
// The W3C SVG layout tests use a different size than the other layout tests.
if (test_url.spec().find("W3C-SVG-1.1") != std::string::npos)
initial_size = gfx::Size(kTestSVGWindowWidthDip, kTestSVGWindowHeightDip);
- if (main_window_ &&
- !SiteInstance::IsSameWebSite(
- browser_context,
- main_window_->web_contents()->GetSiteInstance()->GetSiteURL(),
- test_url)) {
- base::RunLoop run_loop;
- DiscardMainWindow();
- run_loop.Run();
- }
if (!main_window_) {
main_window_ = content::Shell::CreateNewWindow(
browser_context,
« no previous file with comments | « build/android/pylib/gtest/filter/content_browsertests_disabled ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698