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

Unified Diff: ipc/ipc_message_utils.cc

Issue 12079026: ipc: Do not use Value::Create* functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « ipc/ipc_message_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc_message_utils.cc
diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc
index dd310c1a3e5ac9454ef4e54315cbdbc6b8a01107..2d59750c3a881f77ecd6ea3a217792d6fa002917 100644
--- a/ipc/ipc_message_utils.cc
+++ b/ipc/ipc_message_utils.cc
@@ -178,28 +178,28 @@ bool ReadValue(const Message* m, PickleIterator* iter, Value** value,
bool val;
if (!ReadParam(m, iter, &val))
return false;
- *value = Value::CreateBooleanValue(val);
+ *value = new base::FundamentalValue(val);
break;
}
case Value::TYPE_INTEGER: {
int val;
if (!ReadParam(m, iter, &val))
return false;
- *value = Value::CreateIntegerValue(val);
+ *value = new base::FundamentalValue(val);
break;
}
case Value::TYPE_DOUBLE: {
double val;
if (!ReadParam(m, iter, &val))
return false;
- *value = Value::CreateDoubleValue(val);
+ *value = new base::FundamentalValue(val);
break;
}
case Value::TYPE_STRING: {
std::string val;
if (!ReadParam(m, iter, &val))
return false;
- *value = Value::CreateStringValue(val);
+ *value = new base::StringValue(val);
break;
}
case Value::TYPE_BINARY: {
« no previous file with comments | « ipc/ipc_message_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698