Commit 434568b6 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/apps/platform_apps/api/easy_unlock_private.

This CL was uploaded by git cl split.

R=jhawkins@chromium.org

Bug: 809610
Change-Id: I491e41bd7735ed3a940594eb11f88542dcc0e3e5
Reviewed-on: https://chromium-review.googlesource.com/c/1258906Reviewed-by: default avatarJames Hawkins <jhawkins@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600025}
parent 1913a62d
......@@ -7,6 +7,7 @@
#include <memory>
#include <utility>
#include "base/bind.h"
#include "chrome/browser/apps/platform_apps/api/easy_unlock_private/easy_unlock_private_connection_manager.h"
#include "chrome/browser/extensions/extension_api_unittest.h"
#include "components/cryptauth/fake_connection.h"
......@@ -62,8 +63,9 @@ class EasyUnlockPrivateApiTest : public extensions::ExtensionApiUnittest {
ExtensionApiUnittest::SetUp();
EasyUnlockPrivateConnectionResourceManager::GetFactoryInstance()
->SetTestingFactoryAndUse(browser()->profile(),
ApiResourceManagerTestFactory);
->SetTestingFactoryAndUse(
browser()->profile(),
base::BindRepeating(&ApiResourceManagerTestFactory));
}
};
......
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