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

Unified Diff: chrome/browser/devtools/devtools_network_interceptor.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/devtools/devtools_network_interceptor.cc
diff --git a/chrome/browser/devtools/devtools_network_interceptor.cc b/chrome/browser/devtools/devtools_network_interceptor.cc
index 20486e2f46303a575969aa9fadb914d25ec7f4a3..5b3fc87ae1c18a56ba72fa356179085a877d215a 100644
--- a/chrome/browser/devtools/devtools_network_interceptor.cc
+++ b/chrome/browser/devtools/devtools_network_interceptor.cc
@@ -5,9 +5,9 @@
#include "chrome/browser/devtools/devtools_network_interceptor.h"
#include <stddef.h>
-
#include <algorithm>
#include <limits>
+#include <utility>
#include "base/time/time.h"
#include "chrome/browser/devtools/devtools_network_conditions.h"
@@ -69,7 +69,7 @@ void DevToolsNetworkInterceptor::UpdateConditions(
if (conditions_->IsThrottling())
UpdateThrottled(now);
- conditions_ = conditions.Pass();
+ conditions_ = std::move(conditions);
bool offline = conditions_->offline();
if (offline || !conditions_->IsThrottling()) {

Powered by Google App Engine
This is Rietveld 408576698