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

Unified Diff: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 years 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 | « net/url_request/url_request_unittest.cc ('k') | remoting/host/host_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
diff --git a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
index 45283e323e0636e18b0cd26dac9bb074460c97c7..4a16385ba85edc13b0384174fec8915661997aa8 100644
--- a/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
+++ b/ppapi/shared_impl/private/ppb_x509_certificate_private_shared.cc
@@ -41,29 +41,29 @@ PP_Var PPB_X509Certificate_Fields::GetFieldAsPPVar(
}
switch (value->GetType()) {
- case base::Value::TYPE_NULL:
+ case base::Value::Type::NONE:
return PP_MakeNull();
- case base::Value::TYPE_BOOLEAN: {
+ case base::Value::Type::BOOLEAN: {
bool val;
value->GetAsBoolean(&val);
return PP_MakeBool(PP_FromBool(val));
}
- case base::Value::TYPE_INTEGER: {
+ case base::Value::Type::INTEGER: {
int val;
value->GetAsInteger(&val);
return PP_MakeInt32(val);
}
- case base::Value::TYPE_DOUBLE: {
+ case base::Value::Type::DOUBLE: {
double val;
value->GetAsDouble(&val);
return PP_MakeDouble(val);
}
- case base::Value::TYPE_STRING: {
+ case base::Value::Type::STRING: {
std::string val;
value->GetAsString(&val);
return StringVar::StringToPPVar(val);
}
- case base::Value::TYPE_BINARY: {
+ case base::Value::Type::BINARY: {
const base::BinaryValue* binary =
static_cast<const base::BinaryValue*>(value);
uint32_t size = static_cast<uint32_t>(binary->GetSize());
@@ -73,8 +73,8 @@ PP_Var PPB_X509Certificate_Fields::GetFieldAsPPVar(
buffer);
return array_buffer;
}
- case base::Value::TYPE_DICTIONARY:
- case base::Value::TYPE_LIST:
+ case base::Value::Type::DICTIONARY:
+ case base::Value::Type::LIST:
// Not handled.
break;
}
« no previous file with comments | « net/url_request/url_request_unittest.cc ('k') | remoting/host/host_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698