Commit 6cba024f authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

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.

This converts uses in src//chrome/browser/chromeos/file_manager.

This CL was uploaded by git cl split.

R=fukino@chromium.org

Bug: 809610
Change-Id: I08597fe6bfc322399ae478451c9f2f9091d87ae7
Reviewed-on: https://chromium-review.googlesource.com/c/1258175Reviewed-by: default avatarNaoki Fukino <fukino@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597052}
parent eefe0105
......@@ -7,6 +7,7 @@
#include <memory>
#include <utility>
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/memory/ptr_util.h"
#include "base/sys_info.h"
......@@ -214,7 +215,8 @@ class FileManagerPathUtilConvertUrlTest : public testing::Test {
arc_service_manager_ = std::make_unique<arc::ArcServiceManager>();
arc_service_manager_->set_browser_context(primary_profile);
arc::ArcFileSystemOperationRunner::GetFactory()->SetTestingFactoryAndUse(
primary_profile, &CreateFileSystemOperationRunnerForTesting);
primary_profile,
base::BindRepeating(&CreateFileSystemOperationRunnerForTesting));
arc_service_manager_->arc_bridge_service()->file_system()->SetInstance(
&fake_file_system_);
arc::WaitForInstanceReady(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment