Index: chrome/browser/extensions/api/preference/preference_helpers.cc |
diff --git a/chrome/browser/extensions/api/preference/preference_helpers.cc b/chrome/browser/extensions/api/preference/preference_helpers.cc |
index e9f95b04ce1cd6907d9326a0b6d51e27fe17b05f..7a7af9644dadea7308bebae2cc65bfd7c662e030 100644 |
--- a/chrome/browser/extensions/api/preference/preference_helpers.cc |
+++ b/chrome/browser/extensions/api/preference/preference_helpers.cc |
@@ -128,9 +128,9 @@ void DispatchEventToExtensions( |
} |
scoped_ptr<ListValue> args_copy(args->DeepCopy()); |
- router->DispatchEventToExtension( |
- extension_id, event_name, args_copy.Pass(), restrict_to_profile, |
- GURL()); |
+ scoped_ptr<Event> event(new Event(event_name, args_copy.Pass())); |
+ event->restrict_to_profile = restrict_to_profile; |
+ router->DispatchEventToExtension(extension_id, event.Pass()); |
} |
} |
} |