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

Unified Diff: components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.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 | « components/prefs/scoped_user_pref_update.h ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc
diff --git a/components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc b/components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc
index da1d36099a5024e28c29b43727b822e3c47bbbf0..e87a224f6cb878921178c175198e3988f745616e 100644
--- a/components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc
+++ b/components/proximity_auth/ble/bluetooth_low_energy_device_whitelist.cc
@@ -55,7 +55,7 @@ std::string BluetoothLowEnergyDeviceWhitelist::GetDeviceAddress(
for (base::DictionaryValue::Iterator it(*device_whitelist); !it.IsAtEnd();
it.Advance()) {
std::string value_string;
- DCHECK(it.value().IsType(base::Value::TYPE_STRING));
+ DCHECK(it.value().IsType(base::Value::Type::STRING));
if (it.value().GetAsString(&value_string) && value_string == public_key)
return it.key();
}
@@ -69,7 +69,7 @@ std::vector<std::string> BluetoothLowEnergyDeviceWhitelist::GetPublicKeys()
for (base::DictionaryValue::Iterator it(*device_whitelist); !it.IsAtEnd();
it.Advance()) {
std::string value_string;
- DCHECK(it.value().IsType(base::Value::TYPE_STRING));
+ DCHECK(it.value().IsType(base::Value::Type::STRING));
it.value().GetAsString(&value_string);
public_keys.push_back(value_string);
}
« no previous file with comments | « components/prefs/scoped_user_pref_update.h ('k') | components/proximity_auth/messenger_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698