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 |
- } |
- }); |
- }); |
-} |