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

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

Issue 10566018: Initial work to remove the notion of all extension message payloads as strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing parts of a different change. Created 8 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/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 6a15809c143c532ffabe941127e148f003f26a02..20a5e2007d7079a26716784d37093032d615cfa6 100644
--- a/chrome/browser/extensions/api/api_resource_event_notifier.cc
+++ b/chrome/browser/extensions/api/api_resource_event_notifier.cc
@@ -126,14 +126,11 @@ void APIResourceEventNotifier::DispatchEvent(const std::string &extension,
void APIResourceEventNotifier::DispatchEventOnUIThread(
const std::string &extension, DictionaryValue* event) {
- ListValue args;
-
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ ListValue args;
args.Set(0, event);
- std::string json_args;
- base::JSONWriter::Write(&args, &json_args);
- router_->DispatchEventToExtension(src_extension_id_, extension, json_args,
+ router_->DispatchEventToExtension(src_extension_id_, extension, args,
profile_, src_url_);
}
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_event_router.h » ('j') | chrome/browser/extensions/extension_event_router.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698