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

Unified Diff: chrome/browser/extensions/extension_preference_helpers.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/extension_preference_helpers.cc
diff --git a/chrome/browser/extensions/extension_preference_helpers.cc b/chrome/browser/extensions/extension_preference_helpers.cc
index 1652c8a3a64b7d401c1b66c0bc48886b3efa3f0c..5b32c6313516af981362535c5f5b8224f4291871 100644
--- a/chrome/browser/extensions/extension_preference_helpers.cc
+++ b/chrome/browser/extensions/extension_preference_helpers.cc
@@ -101,8 +101,6 @@ void DispatchEventToExtensions(
std::string level_of_control =
GetLevelOfControl(profile, extension_id, browser_pref, incognito);
dict->SetString(kLevelOfControlKey, level_of_control);
- std::string json_args;
- base::JSONWriter::Write(args, &json_args);
// If the extension is in incognito split mode,
// a) incognito pref changes are visible only to the incognito tabs
@@ -124,7 +122,7 @@ void DispatchEventToExtensions(
}
router->DispatchEventToExtension(
- extension_id, event_name, json_args, restrict_to_profile, GURL());
+ extension_id, event_name, args, restrict_to_profile, GURL());
}
}
}

Powered by Google App Engine
This is Rietveld 408576698