Convert KeyedServiceFactory to base::Callback
As std::function<> is forbidden, convert KeyedServiceFactory to use base::Callback<> instead; eventually this will allow sub-classes to accept callbacks instead of function pointers. Also convert KeyedServiceFactory to std::unique_ptr<> in the std::map<> instead of raw pointers and delete. Bug: 809610 Change-Id: I14dcae6f9086a8788942431f6f68ab294cf11745 Reviewed-on: https://chromium-review.googlesource.com/1233702Reviewed-by:Colin Blundell <blundell@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#592424}
Showing
Please register or sign in to comment