From b662e1c8ff3e2ec8d796920ca6929bdbb0a7b329 Mon Sep 17 00:00:00 2001 From: afakhry Date: Mon, 3 Aug 2015 12:38:03 -0700 Subject: New Task Manager - Phase 1.3.3: Implement Guest Task Providing Add support for the browser plugin guests that represent <*view> tags so that they show up in the task manager. CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation R=nick@chromium.org BUG=470991 TEST=browser_tests --gtest_filter=WebViewTest.TaskManagement* Review URL: https://codereview.chromium.org/1242993002 Cr-Commit-Position: refs/heads/master@{#341588} --- extensions/browser/guest_view/web_view/web_view_apitest.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/browser/guest_view/web_view') diff --git a/extensions/browser/guest_view/web_view/web_view_apitest.cc b/extensions/browser/guest_view/web_view/web_view_apitest.cc index 0e1b24e..5857b73 100644 --- a/extensions/browser/guest_view/web_view/web_view_apitest.cc +++ b/extensions/browser/guest_view/web_view/web_view_apitest.cc @@ -9,6 +9,7 @@ #include "base/strings/string_util.h" #include "base/strings/stringprintf.h" #include "components/guest_view/browser/guest_view_manager.h" +#include "components/guest_view/browser/guest_view_manager_delegate.h" #include "components/guest_view/browser/guest_view_manager_factory.h" #include "components/guest_view/browser/test_guest_view_manager.h" #include "content/public/browser/render_process_host.h" @@ -16,11 +17,10 @@ #include "content/public/test/browser_test_utils.h" #include "content/public/test/test_renderer_host.h" #include "content/public/test/test_utils.h" +#include "extensions/browser/api/extensions_api_client.h" #include "extensions/browser/api/test/test_api.h" #include "extensions/browser/app_window/app_window.h" #include "extensions/browser/app_window/app_window_registry.h" -#include "extensions/browser/extension_host.h" -#include "extensions/browser/guest_view/extensions_guest_view_manager_delegate.h" #include "extensions/browser/process_manager.h" #include "extensions/common/extension.h" #include "extensions/common/extension_paths.h" @@ -255,11 +255,11 @@ TestGuestViewManager* WebViewAPITest::GetGuestViewManager() { // TestGuestViewManager::WaitForSingleGuestCreated may and will get called // before a guest is created. if (!manager) { - manager = static_cast( - GuestViewManager::CreateWithDelegate( + manager = + static_cast(GuestViewManager::CreateWithDelegate( context, - scoped_ptr( - new ExtensionsGuestViewManagerDelegate(context)))); + ExtensionsAPIClient::Get()->CreateGuestViewManagerDelegate( + context))); } return manager; } -- cgit v1.1