Index: net/disk_cache/cache_creator.cc |
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc |
index 243acc4679d0c268a6a3ccffa6f7c4563d44b886..54338c1fb08f1512f3a8cc26b7782aa8865a1579 100644 |
--- a/net/disk_cache/cache_creator.cc |
+++ b/net/disk_cache/cache_creator.cc |
@@ -2,6 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
+#include <utility> |
+ |
#include "base/files/file_path.h" |
#include "base/macros.h" |
#include "base/metrics/field_trial.h" |
@@ -122,7 +124,7 @@ int CacheCreator::Run() { |
void CacheCreator::DoCallback(int result) { |
DCHECK_NE(net::ERR_IO_PENDING, result); |
if (result == net::OK) { |
- *backend_ = created_cache_.Pass(); |
+ *backend_ = std::move(created_cache_); |
} else { |
LOG(ERROR) << "Unable to create cache"; |
created_cache_.reset(); |