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

Unified Diff: chrome/browser/extensions/api/api_resource_event_notifier.cc

Issue 10694085: Refactor extension event distribution to use Values instead of JSON strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 5 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/browser/extensions/api/api_resource_event_notifier.cc
diff --git a/chrome/browser/extensions/api/api_resource_event_notifier.cc b/chrome/browser/extensions/api/api_resource_event_notifier.cc
index c89aa0055e849a12f9b4ece0b613bd0e7184c20d..c72b865b99b170bc6030244ae42ef01e51607e9b 100644
--- a/chrome/browser/extensions/api/api_resource_event_notifier.cc
+++ b/chrome/browser/extensions/api/api_resource_event_notifier.cc
@@ -134,9 +134,9 @@ void APIResourceEventNotifier::DispatchEventOnUIThread(
const std::string &extension, DictionaryValue* event) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- ListValue args;
- args.Set(0, event);
- router_->DispatchEventToExtension(src_extension_id_, extension, args,
+ ListValue* const arguments = new ListValue();
+ arguments->Set(0, event);
+ router_->DispatchEventToExtension(src_extension_id_, extension, arguments,
profile_, src_url_);
}

Powered by Google App Engine
This is Rietveld 408576698