CanvasResourceProvider: Move CanvasImageProvider to .cc file
CanvasImageProvider is an inner class of CanvasResourceProvider, that only needs to be defined on the header for the base::Optional use of it. This CL changes that to std::unique_ptr<> like its sister member |canvas_|, moves its implementation to the .cc file and inlines the 1-line methods. Also I replaced a base::Unretained() with a WeakPtr() since I didn't see why wouldn't it work. No new code intended beyond that, just cleaning up what there is. Bug: 839970 Change-Id: I8f3b299c12662a7a83c72ac7bc3eae1b8c1f27ea Reviewed-on: https://chromium-review.googlesource.com/c/1318816 Commit-Queue: Miguel Casas <mcasas@chromium.org> Reviewed-by:enne <enne@chromium.org> Reviewed-by:
Mohammad Reza Zakerinasab <zakerinasab@chromium.org> Reviewed-by:
Khushal <khushalsagar@chromium.org> Cr-Commit-Position: refs/heads/master@{#605819}
Showing
Please register or sign in to comment