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

Unified Diff: chrome/browser/extensions/extension_request_limiting_throttle_browsertest.cc

Issue 1549233002: Convert Pass()→std::move() in //chrome/browser/extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/extensions/extension_request_limiting_throttle_browsertest.cc
diff --git a/chrome/browser/extensions/extension_request_limiting_throttle_browsertest.cc b/chrome/browser/extensions/extension_request_limiting_throttle_browsertest.cc
index 369abcc575d9bf77cd241d495612cd9ab3820ae6..2fc28d3d3455a4633e06b9d9bcd689cb4027552a 100644
--- a/chrome/browser/extensions/extension_request_limiting_throttle_browsertest.cc
+++ b/chrome/browser/extensions/extension_request_limiting_throttle_browsertest.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/bind.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_util.h"
@@ -37,7 +39,7 @@ scoped_ptr<net::test_server::HttpResponse> HandleRequest(
http_response->AddCustomHeader("Location", "/test_throttle");
if (set_cache_header_redirect_page)
http_response->AddCustomHeader("Cache-Control", "max-age=3600");
- return http_response.Pass();
+ return std::move(http_response);
}
if (base::StartsWith(request.relative_url, "/test_throttle",
@@ -49,7 +51,7 @@ scoped_ptr<net::test_server::HttpResponse> HandleRequest(
http_response->set_content_type("text/plain");
if (set_cache_header_test_throttle_page)
http_response->AddCustomHeader("Cache-Control", "max-age=3600");
- return http_response.Pass();
+ return std::move(http_response);
}
// Unhandled requests result in the Embedded test server sending a 404.
@@ -99,7 +101,7 @@ class ExtensionRequestLimitingThrottleBrowserTest
// Don't use initial delay unless the last request was an error.
false,
});
- manager->SetBackoffPolicyForTests(policy.Pass());
+ manager->SetBackoffPolicyForTests(std::move(policy));
}
// Requests to 127.0.0.1 bypass throttling, so set up a host resolver rule
// to use a fake domain.
« no previous file with comments | « chrome/browser/extensions/extension_migrator.cc ('k') | chrome/browser/extensions/extension_service_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698