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

Unified Diff: chrome/test/data/extensions/api_test/media_galleries/common/common_injected.js

Issue 2467413002: Fix MediaGalleriesPlatformAppBrowserTest tests with PlzNavigate. (Closed)
Patch Set: a Created 4 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/test/data/extensions/api_test/media_galleries/common/common_injected.js
diff --git a/chrome/test/data/extensions/api_test/media_galleries/common/common_injected.js b/chrome/test/data/extensions/api_test/media_galleries/common/common_injected.js
index 17db28187fde40f235016b2d98641463f9978254..703fc2a5a617365fd00652494ce16ab3b73b88c9 100644
--- a/chrome/test/data/extensions/api_test/media_galleries/common/common_injected.js
+++ b/chrome/test/data/extensions/api_test/media_galleries/common/common_injected.js
@@ -224,21 +224,3 @@ function verifyJPEG(parentDirectoryEntry, filename, expectedFileLength,
parentDirectoryEntry.getFile(filename, {create: false}, verifyFileEntry,
chrome.test.fail);
}
-
-// Create a dummy window to prevent the ProcessManager from suspending the
-// chrome-test app. Needed because the writer.onerror and writer.onwriteend
-// events do not qualify as pending callbacks, so the app looks dormant.
-function CreateDummyWindowToPreventSleep() {
- chrome.app.runtime.onLaunched.addListener(function() {
- chrome.app.window.create('dummy.html', {
- outerBounds: {
- width: 800,
- height: 600,
- left: 100,
- top: 100,
- minWidth: 800,
- minHeight: 600
- }
- });
- });
-}

Powered by Google App Engine
This is Rietveld 408576698