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

Unified Diff: content/browser/background_sync/background_sync_browsertest.cc

Issue 2752533003: Remove ScopedVector from content/browser/. (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_browsertest.cc
diff --git a/content/browser/background_sync/background_sync_browsertest.cc b/content/browser/background_sync/background_sync_browsertest.cc
index 5eca6324c559532912c525da7f722571277feea1..c4a18977e633e5cba263f87e7fd974a37ed04bc7 100644
--- a/content/browser/background_sync/background_sync_browsertest.cc
+++ b/content/browser/background_sync/background_sync_browsertest.cc
@@ -4,6 +4,7 @@
#include <stdint.h>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -73,10 +74,11 @@ void RegistrationPendingDidGetSyncRegistration(
const std::string& tag,
const base::Callback<void(bool)>& callback,
BackgroundSyncStatus error_type,
- std::unique_ptr<ScopedVector<BackgroundSyncRegistration>> registrations) {
+ std::unique_ptr<std::vector<std::unique_ptr<BackgroundSyncRegistration>>>
+ registrations) {
ASSERT_EQ(BACKGROUND_SYNC_STATUS_OK, error_type);
// Find the right registration in the list and check its status.
- for (const BackgroundSyncRegistration* registration : *registrations) {
+ for (const auto& registration : *registrations) {
if (registration->options()->tag == tag) {
callback.Run(registration->sync_state() ==
blink::mojom::BackgroundSyncState::PENDING);
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698