Index: content/browser/devtools/devtools_protocol.cc |
diff --git a/content/browser/devtools/devtools_protocol.cc b/content/browser/devtools/devtools_protocol.cc |
index 1363e6cbd61617d0e8adfe94115fa7f5367bdbe9..1ef3085ca97f629fff828624346286504fb7eaad 100644 |
--- a/content/browser/devtools/devtools_protocol.cc |
+++ b/content/browser/devtools/devtools_protocol.cc |
@@ -54,7 +54,7 @@ std::string DevToolsProtocol::Command::Serialize() { |
DictionaryValue command; |
command.SetInteger(kIdParam, id_); |
command.SetString(kMethodParam, method_); |
- if (params_.get()) |
+ if (params_) |
command.Set(kParamsParam, params_->DeepCopy()); |
std::string json_command; |
@@ -107,7 +107,7 @@ std::string DevToolsProtocol::Response::Serialize() { |
error_object->SetInteger(kErrorCodeParam, error_code_); |
if (!error_message_.empty()) |
error_object->SetString(kErrorMessageParam, error_message_); |
- } else if (result_.get()) { |
+ } else if (result_) { |
response.Set(kResultParam, result_->DeepCopy()); |
} |
@@ -145,7 +145,7 @@ DevToolsProtocol::Notification::~Notification() { |
std::string DevToolsProtocol::Notification::Serialize() { |
DictionaryValue notification; |
notification.SetString(kMethodParam, method_); |
- if (params_.get()) |
+ if (params_) |
notification.Set(kParamsParam, params_->DeepCopy()); |
std::string json_notification; |