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

Unified Diff: content/browser/background_sync/background_sync_service_impl.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
Index: content/browser/background_sync/background_sync_service_impl.cc
diff --git a/content/browser/background_sync/background_sync_service_impl.cc b/content/browser/background_sync/background_sync_service_impl.cc
index 2bda9e73d2806a738e5015600f701a9bedb1257f..2cef89d720e5d56dbbb562930117527d871ed44e 100644
--- a/content/browser/background_sync/background_sync_service_impl.cc
+++ b/content/browser/background_sync/background_sync_service_impl.cc
@@ -146,13 +146,13 @@ void BackgroundSyncServiceImpl::OnRegisterResult(
void BackgroundSyncServiceImpl::OnGetRegistrationsResult(
const GetRegistrationsCallback& callback,
BackgroundSyncStatus status,
- std::unique_ptr<ScopedVector<BackgroundSyncRegistration>>
+ std::unique_ptr<std::vector<std::unique_ptr<BackgroundSyncRegistration>>>
result_registrations) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
DCHECK(result_registrations);
std::vector<blink::mojom::SyncRegistrationPtr> mojo_registrations;
- for (const BackgroundSyncRegistration* registration : *result_registrations)
+ for (const auto& registration : *result_registrations)
mojo_registrations.push_back(ToMojoRegistration(*registration));
callback.Run(static_cast<blink::mojom::BackgroundSyncError>(status),

Powered by Google App Engine
This is Rietveld 408576698