| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/macros.h" |
| 5 #include "base/strings/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
| 6 #include "chrome/browser/apps/app_browsertest_util.h" | 7 #include "chrome/browser/apps/app_browsertest_util.h" |
| 7 #include "components/guest_view/browser/guest_view_manager.h" | 8 #include "components/guest_view/browser/guest_view_manager.h" |
| 8 #include "components/guest_view/browser/guest_view_manager_factory.h" | 9 #include "components/guest_view/browser/guest_view_manager_factory.h" |
| 9 #include "components/guest_view/browser/test_guest_view_manager.h" | 10 #include "components/guest_view/browser/test_guest_view_manager.h" |
| 10 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
| 11 #include "content/public/browser/render_process_host.h" | 12 #include "content/public/browser/render_process_host.h" |
| 12 #include "content/public/browser/render_process_host_observer.h" | 13 #include "content/public/browser/render_process_host_observer.h" |
| 13 #include "content/public/test/browser_test_utils.h" | 14 #include "content/public/test/browser_test_utils.h" |
| 14 #include "content/public/test/test_utils.h" | 15 #include "content/public/test/test_utils.h" |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 extensions::AppRuntimeEventRouter::DispatchOnEmbedRequestedEvent( | 252 extensions::AppRuntimeEventRouter::DispatchOnEmbedRequestedEvent( |
| 252 browser()->profile(), fake_embed_request_param.Pass(), bad_app); | 253 browser()->profile(), fake_embed_request_param.Pass(), bad_app); |
| 253 bad_app_obs.WaitUntilRenderProcessHostKilled(); | 254 bad_app_obs.WaitUntilRenderProcessHostKilled(); |
| 254 // Now ask the guest to continue embedding. | 255 // Now ask the guest to continue embedding. |
| 255 ASSERT_TRUE( | 256 ASSERT_TRUE( |
| 256 ExecuteScript(extensions::ProcessManager::Get(browser()->profile()) | 257 ExecuteScript(extensions::ProcessManager::Get(browser()->profile()) |
| 257 ->GetBackgroundHostForExtension(guest_app->id()) | 258 ->GetBackgroundHostForExtension(guest_app->id()) |
| 258 ->web_contents(), | 259 ->web_contents(), |
| 259 "continueEmbedding();")); | 260 "continueEmbedding();")); |
| 260 } | 261 } |
| OLD | NEW |