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

Unified Diff: chrome/test/data/extensions/api_test/notifications/galore/app/main.js

Issue 315053006: Refactor Notifications Galore to simplify, amke more hackable and add 'recording'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr feedback Created 6 years, 6 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/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);

Powered by Google App Engine
This is Rietveld 408576698