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

Unified Diff: content/browser/appcache/appcache_disk_cache.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/appcache/appcache_disk_cache.cc
diff --git a/content/browser/appcache/appcache_disk_cache.cc b/content/browser/appcache/appcache_disk_cache.cc
index f7cbc5857ea3bacbbf1dff10e9ccc158b3d7dde0..49030f000a98cd254bc0b41f22ca3fb53629777f 100644
--- a/content/browser/appcache/appcache_disk_cache.cc
+++ b/content/browser/appcache/appcache_disk_cache.cc
@@ -5,6 +5,7 @@
#include "content/browser/appcache/appcache_disk_cache.h"
#include <limits>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -369,7 +370,7 @@ int AppCacheDiskCache::Init(
void AppCacheDiskCache::OnCreateBackendComplete(int rv) {
if (rv == net::OK) {
- disk_cache_ = create_backend_callback_->backend_ptr_.Pass();
+ disk_cache_ = std::move(create_backend_callback_->backend_ptr_);
}
create_backend_callback_ = NULL;
« no previous file with comments | « content/browser/accessibility/accessibility_tree_formatter.cc ('k') | content/browser/appcache/appcache_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698