Index: chrome/test/data/extensions/api_test/notifications/galore/app/main.js |
diff --git a/chrome/test/data/extensions/api_test/notifications/galore/app/main.js b/chrome/test/data/extensions/api_test/notifications/galore/app/main.js |
index 6ec7c871460e537c2f5c5e67fc54186f30d2895f..b4d9ce29b6bfd45c145b91dd18224e6db2fabb00 100644 |
--- a/chrome/test/data/extensions/api_test/notifications/galore/app/main.js |
+++ b/chrome/test/data/extensions/api_test/notifications/galore/app/main.js |
@@ -2,9 +2,5 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-(function() { |
- var controller = Galore.controller.create(); |
- var listener = controller.createWindow.bind(controller); |
- chrome.app.runtime.onLaunched.addListener(listener); |
- chrome.app.runtime.onRestarted.addListener(listener); |
-}()); |
+chrome.app.runtime.onLaunched.addListener(createWindow); |
+chrome.app.runtime.onRestarted.addListener(createWindow); |