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

Unified Diff: content/browser/appcache/appcache_storage_impl_unittest.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_storage_impl_unittest.cc
diff --git a/content/browser/appcache/appcache_storage_impl_unittest.cc b/content/browser/appcache/appcache_storage_impl_unittest.cc
index 1a802741909ed974d18f93bdf6f80f2ca9e8a292..9e4c2c4e6df2bb951286565daabbb5b390ec8ba6 100644
--- a/content/browser/appcache/appcache_storage_impl_unittest.cc
+++ b/content/browser/appcache/appcache_storage_impl_unittest.cc
@@ -2,9 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stdint.h>
+#include "content/browser/appcache/appcache_storage_impl.h"
+#include <stdint.h>
#include <stack>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -27,7 +29,6 @@
#include "content/browser/appcache/appcache_interceptor.h"
#include "content/browser/appcache/appcache_request_handler.h"
#include "content/browser/appcache/appcache_service_impl.h"
-#include "content/browser/appcache/appcache_storage_impl.h"
#include "net/base/net_errors.h"
#include "net/base/request_priority.h"
#include "net/http/http_response_headers.h"
@@ -132,9 +133,8 @@ class MockHttpServerJobFactory
: public net::URLRequestJobFactory::ProtocolHandler {
public:
MockHttpServerJobFactory(
- scoped_ptr<net::URLRequestInterceptor> appcache_start_interceptor)
- : appcache_start_interceptor_(appcache_start_interceptor.Pass()) {
- }
+ scoped_ptr<net::URLRequestInterceptor> appcache_start_interceptor)
+ : appcache_start_interceptor_(std::move(appcache_start_interceptor)) {}
net::URLRequestJob* MaybeCreateJob(
net::URLRequest* request,
@@ -168,7 +168,7 @@ class IOThread : public base::Thread {
factory->SetProtocolHandler(
"http", make_scoped_ptr(new MockHttpServerJobFactory(
make_scoped_ptr(new AppCacheInterceptor()))));
- job_factory_ = factory.Pass();
+ job_factory_ = std::move(factory);
request_context_.reset(new net::TestURLRequestContext());
request_context_->set_job_factory(job_factory_.get());
}
« no previous file with comments | « content/browser/appcache/appcache_service_impl.cc ('k') | content/browser/appcache/appcache_update_job_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698