Convert indirect uses of TestingFactoryFunction
TestingFactoryFunction is a simple function pointer. It is deprecated in favor of TestingFactory which is a Callback<>. Convert indirect uses by using base::BindRepeating() in all invocation of SetTestingFactory/AddTestingFactory. Remove the RecentModelFactory::SetForProfileAndUseForTest method as it pass a std::unique_ptr<> object to return from the factory which is difficult to adapt to the new API that requires a base::RepeatingCallback<>. Instead inline the implementation in the sole unit test that called this method and modify it to pass a factory returning a std::vector<std::unique_ptr<RecentModel>>. This converts uses in src//chrome/browser/chromeos/fileapi. This CL was uploaded by git cl split. R=slangley@chromium.org Bug: 809610 Change-Id: Idb8bae335e3defca5b2c6736d302586faf97d929 Reviewed-on: https://chromium-review.googlesource.com/c/1259014Reviewed-by:Stuart Langley <slangley@chromium.org> Commit-Queue: Sylvain Defresne <sdefresne@chromium.org> Cr-Commit-Position: refs/heads/master@{#601644}
Showing
Please register or sign in to comment