Commit 9225f5b8 authored by dcheng's avatar dcheng Committed by Commit bot

Convert Pass()→std::move() in generated devtools protocol handler.

❆(੭ु ◜◡‾)੭ु⁾❆

BUG=557422
R=avi@chromium.org
TBR=dgozman@chromium.org

Review URL: https://codereview.chromium.org/1549363002

Cr-Commit-Position: refs/heads/master@{#366979}
parent 832f2f92
......@@ -29,6 +29,8 @@ template_h = string.Template(header + """\
#ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_DISPATCHER_H_
#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_DISPATCHER_H_
#include <utility>
#include "content/browser/devtools/protocol/devtools_protocol_client.h"
namespace content {
......@@ -334,7 +336,7 @@ ${prep}\
return false;
scoped_ptr<base::DictionaryValue> result(new base::DictionaryValue());
${wrap}\
client_.SendSuccess(command_id, result.Pass());
client_.SendSuccess(command_id, std::move(result));
return true;
}
""")
......@@ -421,7 +423,7 @@ tmpl_event_impl = string.Template("""\
void Client::${Command}(
scoped_refptr<${Command}Params> params) {
SendNotification("${Domain}.${command}",
params->ToValue().Pass());
params->ToValue());
}
""")
......@@ -429,7 +431,7 @@ tmpl_response_impl = string.Template("""\
void Client::Send${Command}Response(
DevToolsCommandId command_id,
scoped_refptr<${Command}Response> params) {
SendSuccess(command_id, params->ToValue().Pass());
SendSuccess(command_id, params->ToValue());
}
""")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment