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

Unified Diff: content/browser/devtools/devtools_protocol.cc

Issue 14081010: Cleanup: Remove unnecessary ".get()" from scoped_ptrs<>. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some gtk issues Created 7 years, 8 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 | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « content/browser/devtools/devtools_http_handler_impl.cc ('k') | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698