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

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

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: Update new sync tests Created 8 years, 1 month 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_apitest.cc
diff --git a/chrome/browser/extensions/extension_apitest.cc b/chrome/browser/extensions/extension_apitest.cc
index f70b3b12768c29246d9d2cbd02a4ed3c31b930c9..698ae40cdcd25a338ba37903ae70566724e933eb 100644
--- a/chrome/browser/extensions/extension_apitest.cc
+++ b/chrome/browser/extensions/extension_apitest.cc
@@ -6,8 +6,8 @@
#include "base/string_util.h"
#include "base/stringprintf.h"
-#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/api/test/test_api.h"
+#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/unpacked_installer.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
@@ -173,6 +173,13 @@ bool ExtensionApiTest::RunPageTest(const std::string& page_url,
}
bool ExtensionApiTest::RunPlatformAppTest(const char* extension_name) {
+ bool res = RunPlatformAppTestReturnImmediately(extension_name);
+ CloseShellWindowsAndWaitForAppToExit();
+ return res;
+}
+
+bool ExtensionApiTest::RunPlatformAppTestReturnImmediately(
+ const char* extension_name) {
return RunExtensionTestImpl(extension_name, "", kFlagLaunchPlatformApp);
}

Powered by Google App Engine
This is Rietveld 408576698