Index: chrome/browser/devtools/chrome_devtools_manager_delegate.cc |
diff --git a/chrome/browser/devtools/chrome_devtools_manager_delegate.cc b/chrome/browser/devtools/chrome_devtools_manager_delegate.cc |
index 101d544a6be728d7695c7639e35c8e0173ba8192..17d420541ed999826d7b89977267cf0555b4f80e 100644 |
--- a/chrome/browser/devtools/chrome_devtools_manager_delegate.cc |
+++ b/chrome/browser/devtools/chrome_devtools_manager_delegate.cc |
@@ -254,12 +254,12 @@ ChromeDevToolsManagerDelegate::SetRemoteLocations( |
return DevToolsProtocol::CreateInvalidParamsResponse(command_id, |
kLocationsParam); |
for (const auto& item : *locations) { |
- if (!item->IsType(base::Value::Type::DICTIONARY)) { |
+ if (!item.IsType(base::Value::Type::DICTIONARY)) { |
return DevToolsProtocol::CreateInvalidParamsResponse(command_id, |
kLocationsParam); |
} |
- base::DictionaryValue* dictionary = |
- static_cast<base::DictionaryValue*>(item.get()); |
+ const base::DictionaryValue* dictionary = |
+ static_cast<const base::DictionaryValue*>(&item); |
std::string host; |
if (!dictionary->GetStringWithoutPathExpansion(kHostParam, &host)) { |
return DevToolsProtocol::CreateInvalidParamsResponse(command_id, |