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

Unified Diff: content/browser/devtools/protocol/system_info_handler.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/devtools/protocol/system_info_handler.cc
diff --git a/content/browser/devtools/protocol/system_info_handler.cc b/content/browser/devtools/protocol/system_info_handler.cc
index 7e070f0a91e48e6aa4b04ece907e77788868a51f..27877b0bd981f9fd9d43169fdc261953642d22e8 100644
--- a/content/browser/devtools/protocol/system_info_handler.cc
+++ b/content/browser/devtools/protocol/system_info_handler.cc
@@ -5,6 +5,7 @@
#include "content/browser/devtools/protocol/system_info_handler.h"
#include <stdint.h>
+#include <utility>
#include "base/bind.h"
#include "content/browser/gpu/compositor_util.h"
@@ -195,11 +196,12 @@ void SystemInfoHandler::SendGetInfoResponse(DevToolsCommandId command_id) {
AuxGPUInfoEnumerator enumerator(aux_attributes.get());
gpu_info.EnumerateFields(&enumerator);
- scoped_refptr<GPUInfo> gpu = GPUInfo::Create()
- ->set_devices(devices)
- ->set_aux_attributes(aux_attributes.Pass())
- ->set_feature_status(make_scoped_ptr(GetFeatureStatus()))
- ->set_driver_bug_workarounds(GetDriverBugWorkarounds());
+ scoped_refptr<GPUInfo> gpu =
+ GPUInfo::Create()
+ ->set_devices(devices)
+ ->set_aux_attributes(std::move(aux_attributes))
+ ->set_feature_status(make_scoped_ptr(GetFeatureStatus()))
+ ->set_driver_bug_workarounds(GetDriverBugWorkarounds());
client_->SendGetInfoResponse(
command_id,
« no previous file with comments | « content/browser/devtools/protocol/emulation_handler.cc ('k') | content/browser/devtools/render_frame_devtools_agent_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698