Chromium Code Reviews
DescriptionUse std::unique_ptr for access to BackgroundFetchJobInfo
As a temporary implementation, the code was storing maps of
BackgroundFetchJobInfo and BackgroundFetchRequestInfo. The RequestInfo
can't be converted to unique_ptr because we need access to it from two
places until the storage solution is available, but the RequestInfo is
only accessed from the DataManager, so that can be switched to
unique_ptr.
This also allows the JobInfo itself to hold a unique_ptr.
BUG=699957
Review-Url: https://codereview.chromium.org/2763613004
Cr-Commit-Position: refs/heads/master@{#458371}
Committed: https://chromium.googlesource.com/chromium/src/+/3a3ff3e332e4667ca5424370e3d7823aebbd82db
Patch Set 1 #
Total comments: 9
Patch Set 2 : Fixed std::move issue #
Total comments: 2
Patch Set 3 : Missed one #
Messages
Total messages: 12 (5 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||