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

Unified Diff: chrome/browser/plugin_finder.cc

Issue 10003001: Update JSONReader to take base::StringPiece instead of std::string (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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/plugin_finder.cc
diff --git a/chrome/browser/plugin_finder.cc b/chrome/browser/plugin_finder.cc
index 2b66754ec5e3a02fdaabc6831f597e6b43cd300b..6656efc45fd4c279fb32a62fdd13d1fd2ed503f8 100644
--- a/chrome/browser/plugin_finder.cc
+++ b/chrome/browser/plugin_finder.cc
@@ -54,7 +54,7 @@ DictionaryValue* PluginFinder::LoadPluginListInternal() {
bool allow_trailing_comma = false;
std::string error_str;
scoped_ptr<base::Value> value(base::JSONReader::ReadAndReturnError(
- json_resource.as_string(),
+ json_resource,
allow_trailing_comma,
NULL,
&error_str));

Powered by Google App Engine
This is Rietveld 408576698