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

Unified Diff: content/shell/browser/layout_test/notify_done_forwarder.cc

Issue 1890223002: Explicitly initialize secondary renderers for layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 4 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
Index: content/shell/browser/layout_test/notify_done_forwarder.cc
diff --git a/content/shell/browser/layout_test/notify_done_forwarder.cc b/content/shell/browser/layout_test/notify_done_forwarder.cc
deleted file mode 100644
index b9213938da28cd98a06617ea698c5e323e782699..0000000000000000000000000000000000000000
--- a/content/shell/browser/layout_test/notify_done_forwarder.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/shell/browser/layout_test/notify_done_forwarder.h"
-
-#include "content/shell/browser/layout_test/blink_test_controller.h"
-#include "content/shell/common/shell_messages.h"
-
-namespace content {
-
-DEFINE_WEB_CONTENTS_USER_DATA_KEY(NotifyDoneForwarder);
-
-NotifyDoneForwarder::NotifyDoneForwarder(WebContents* web_contents)
- : WebContentsObserver(web_contents) {}
-
-NotifyDoneForwarder::~NotifyDoneForwarder() {}
-
-bool NotifyDoneForwarder::OnMessageReceived(const IPC::Message& message) {
- bool handled = true;
- IPC_BEGIN_MESSAGE_MAP(NotifyDoneForwarder, message)
- IPC_MESSAGE_HANDLER(ShellViewHostMsg_TestFinishedInSecondaryRenderer,
- OnTestFinishedInSecondaryRenderer)
- IPC_MESSAGE_UNHANDLED(handled = false)
- IPC_END_MESSAGE_MAP()
- return handled;
-}
-
-void NotifyDoneForwarder::OnTestFinishedInSecondaryRenderer() {
- BlinkTestController::Get()->TestFinishedInSecondaryRenderer();
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698