Index: chrome/browser/extensions/api/runtime/runtime_api.cc |
diff --git a/chrome/browser/extensions/api/runtime/runtime_api.cc b/chrome/browser/extensions/api/runtime/runtime_api.cc |
index 4376b799662c22993b438c16635d2cd5f83ef39c..47b8f571b5716a4b63e9fa22d4a19dcfd32af1ba 100644 |
--- a/chrome/browser/extensions/api/runtime/runtime_api.cc |
+++ b/chrome/browser/extensions/api/runtime/runtime_api.cc |
@@ -35,9 +35,10 @@ void RuntimeEventRouter::DispatchOnInstalledEvent( |
// chance to register for events. So we register on its behalf. If the |
// extension does not actually have a listener, the event will just be |
// ignored. |
+ scoped_ptr<ListValue> event_args(new ListValue()); |
system->event_router()->AddLazyEventListener(kOnInstalledEvent, extension_id); |
system->event_router()->DispatchEventToExtension( |
- extension_id, kOnInstalledEvent, "[]", NULL, GURL()); |
+ extension_id, kOnInstalledEvent, event_args.Pass(), NULL, GURL()); |
} |
bool RuntimeGetBackgroundPageFunction::RunImpl() { |