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

Unified Diff: content/browser/background_fetch/background_fetch_context.cc

Issue 2796933003: Store BackgroundFetchRequestInfo in a refcounted pointer (Closed)
Patch Set: Created 3 years, 8 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_fetch/background_fetch_context.cc
diff --git a/content/browser/background_fetch/background_fetch_context.cc b/content/browser/background_fetch/background_fetch_context.cc
index ede338ba8117284a520a2d637d0b9d044780851f..d71a9a5674553cd52e9c5c1226e883ff54fa7ff4 100644
--- a/content/browser/background_fetch/background_fetch_context.cc
+++ b/content/browser/background_fetch/background_fetch_context.cc
@@ -81,7 +81,7 @@ void BackgroundFetchContext::DidCreateRegistration(
const BackgroundFetchOptions& options,
const blink::mojom::BackgroundFetchService::FetchCallback& callback,
blink::mojom::BackgroundFetchError error,
- std::vector<BackgroundFetchRequestInfo> initial_requests) {
+ std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests) {
RecordRegistrationCreatedError(error);
if (error != blink::mojom::BackgroundFetchError::NONE) {
callback.Run(error, base::nullopt /* registration */);
@@ -142,7 +142,7 @@ BackgroundFetchJobController* BackgroundFetchContext::GetActiveFetch(
void BackgroundFetchContext::CreateController(
const BackgroundFetchRegistrationId& registration_id,
const BackgroundFetchOptions& options,
- std::vector<BackgroundFetchRequestInfo> initial_requests) {
+ std::vector<scoped_refptr<BackgroundFetchRequestInfo>> initial_requests) {
std::unique_ptr<BackgroundFetchJobController> controller =
base::MakeUnique<BackgroundFetchJobController>(
registration_id, options, data_manager_.get(), browser_context_,

Powered by Google App Engine
This is Rietveld 408576698