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

Unified Diff: chrome/browser/extensions/process_manager_browsertest.cc

Issue 2446903003: Properly initialize GuestViewManager.factory in ProcessManagerBrowserTest. (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/process_manager_browsertest.cc
diff --git a/chrome/browser/extensions/process_manager_browsertest.cc b/chrome/browser/extensions/process_manager_browsertest.cc
index a455216ffda2f00eeb89620432e7f1b288d871d9..97822afa7a200b2900c08a943df3c5aa60090f90 100644
--- a/chrome/browser/extensions/process_manager_browsertest.cc
+++ b/chrome/browser/extensions/process_manager_browsertest.cc
@@ -173,6 +173,9 @@ class NavigationCompletedObserver : public content::WebContentsObserver {
// a real browser.
class ProcessManagerBrowserTest : public ExtensionBrowserTest {
public:
+ ProcessManagerBrowserTest() {
+ guest_view::GuestViewManager::set_factory_for_testing(&factory_);
+ }
// Create an extension with web-accessible frames and an optional background
// page.
const Extension* CreateExtension(const std::string& name,
@@ -260,6 +263,7 @@ class ProcessManagerBrowserTest : public ExtensionBrowserTest {
}
private:
+ guest_view::TestGuestViewManagerFactory factory_;
std::vector<std::unique_ptr<TestExtensionDir>> temp_dirs_;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698