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

Unified Diff: chrome/browser/extensions/extension_browsertest.h

Issue 11117011: Keep browser process alive while there are platform apps with background pages running. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test Created 8 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
Index: chrome/browser/extensions/extension_browsertest.h
diff --git a/chrome/browser/extensions/extension_browsertest.h b/chrome/browser/extensions/extension_browsertest.h
index ed4fc72f1745364169239ef75c3d07d30d44dbdc..4da6c0ef5e0d30035cb48aabe8bddd3c6a76a96a 100644
--- a/chrome/browser/extensions/extension_browsertest.h
+++ b/chrome/browser/extensions/extension_browsertest.h
@@ -22,6 +22,7 @@
#include "content/public/browser/web_contents.h"
class ExtensionProcessManager;
+class ShellWindow;
// Base class for extension browser tests. Provides utilities for loading,
// unloading, and installing extensions.
@@ -169,6 +170,13 @@ class ExtensionBrowserTest : virtual public InProcessBrowserTest,
// Wait for the crx installer to be done. Returns true if it really is done.
bool WaitForCrxInstallerDone();
+ // Closes |window| and waits until it's gone.
+ void CloseShellWindow(ShellWindow* window);
+
+ // Close any Shell Windows and wait for the app's background page to be
+ // unloaded.
+ void CloseShellWindowsAndWaitForAppToExit();
+
// Simulates a page calling window.open on an URL and waits for the
// navigation.
void OpenWindow(content::WebContents* contents,

Powered by Google App Engine
This is Rietveld 408576698