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

Unified Diff: content/browser/appcache/appcache_service_impl.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_service_impl.cc
diff --git a/content/browser/appcache/appcache_service_impl.cc b/content/browser/appcache/appcache_service_impl.cc
index fd8c686bd2e422f88af8ad50dd1f4318baeb3240..2fc5d949d2e9a773e5d651f3923ec3581e854233 100644
--- a/content/browser/appcache/appcache_service_impl.cc
+++ b/content/browser/appcache/appcache_service_impl.cc
@@ -5,6 +5,7 @@
#include "content/browser/appcache/appcache_service_impl.h"
#include <functional>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -389,7 +390,7 @@ void AppCacheServiceImpl::CheckResponseHelper::OnReadDataComplete(int result) {
AppCacheStorageReference::AppCacheStorageReference(
scoped_ptr<AppCacheStorage> storage)
- : storage_(storage.Pass()) {}
+ : storage_(std::move(storage)) {}
AppCacheStorageReference::~AppCacheStorageReference() {}
// AppCacheServiceImpl -------
@@ -469,8 +470,8 @@ void AppCacheServiceImpl::Reinitialize() {
// Inform observers of about this and give them a chance to
// defer deletion of the old storage object.
- scoped_refptr<AppCacheStorageReference>
- old_storage_ref(new AppCacheStorageReference(storage_.Pass()));
+ scoped_refptr<AppCacheStorageReference> old_storage_ref(
+ new AppCacheStorageReference(std::move(storage_)));
FOR_EACH_OBSERVER(Observer, observers_,
OnServiceReinitialized(old_storage_ref.get()));

Powered by Google App Engine
This is Rietveld 408576698