Chromium Code Reviews| Index: content/browser/site_per_process_browsertest.cc |
| diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc |
| index 5e0a3e295f57422ac552dc5c5b2bfc1134d2f387..7f2cfd18995f65748713d88b6ca28f8c36fa33da 100644 |
| --- a/content/browser/site_per_process_browsertest.cc |
| +++ b/content/browser/site_per_process_browsertest.cc |
| @@ -7486,17 +7486,18 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessBrowserTest, DetachInUnloadHandler) { |
| // Helper filter class to wait for a ShowView or ShowWidget message, record the |
|
alexmos
2016/12/13 18:41:40
ShowView -> ShowCreatedWindow
ncarter (slow)
2016/12/15 00:33:16
Done.
|
| // routing ID from the message, and then drop the message. |
| +const uint32_t kMessageClasses[] = {ViewMsgStart, FrameMsgStart}; |
| class PendingWidgetMessageFilter : public BrowserMessageFilter { |
| public: |
| PendingWidgetMessageFilter() |
| - : BrowserMessageFilter(ViewMsgStart), |
| + : BrowserMessageFilter(kMessageClasses, arraysize(kMessageClasses)), |
| routing_id_(MSG_ROUTING_NONE), |
| message_loop_runner_(new MessageLoopRunner) {} |
| bool OnMessageReceived(const IPC::Message& message) override { |
| bool handled = true; |
| IPC_BEGIN_MESSAGE_MAP(PendingWidgetMessageFilter, message) |
| - IPC_MESSAGE_HANDLER(ViewHostMsg_ShowView, OnShowView) |
| + IPC_MESSAGE_HANDLER(FrameHostMsg_ShowCreatedWindow, OnShowCreatedWindow) |
| IPC_MESSAGE_HANDLER(ViewHostMsg_ShowWidget, OnShowWidget) |
| IPC_MESSAGE_UNHANDLED(handled = false) |
| IPC_END_MESSAGE_MAP() |
| @@ -7512,14 +7513,14 @@ class PendingWidgetMessageFilter : public BrowserMessageFilter { |
| private: |
| ~PendingWidgetMessageFilter() override {} |
| - void OnShowView(int routing_id, |
| - WindowOpenDisposition disposition, |
| - const gfx::Rect& initial_rect, |
| - bool user_gesture) { |
| + void OnShowCreatedWindow(int pending_tab_main_frame_route_id, |
|
alexmos
2016/12/13 18:41:40
This is pending_widget_route_id, right?
ncarter (slow)
2016/12/15 00:33:16
Done.
|
| + WindowOpenDisposition disposition, |
| + const gfx::Rect& initial_rect, |
| + bool user_gesture) { |
| content::BrowserThread::PostTask( |
| content::BrowserThread::UI, FROM_HERE, |
| base::Bind(&PendingWidgetMessageFilter::OnReceivedRoutingIDOnUI, this, |
| - routing_id)); |
| + pending_tab_main_frame_route_id)); |
| } |
| void OnShowWidget(int routing_id, const gfx::Rect& initial_rect) { |