Commit f6ef1878 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/extensions/users_private.

This CL was uploaded by git cl split.

R=emaxx@chromium.org

Bug: 809610
Change-Id: Ie2a188fc12106a28474818c9e57dc4dbac233841
Reviewed-on: https://chromium-review.googlesource.com/c/1258769Reviewed-by: default avatarMaksim Ivanov <emaxx@chromium.org>
Commit-Queue: Sylvain Defresne <sdefresne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597050}
parent 67973de9
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
#include <vector> #include <vector>
#include "base/bind.h"
#include "base/command_line.h" #include "base/command_line.h"
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/ptr_util.h" #include "base/memory/ptr_util.h"
...@@ -146,7 +147,8 @@ class UsersPrivateApiTest : public ExtensionApiTest { ...@@ -146,7 +147,8 @@ class UsersPrivateApiTest : public ExtensionApiTest {
s_test_delegate_ = new TestDelegate(profile()); s_test_delegate_ = new TestDelegate(profile());
UsersPrivateDelegateFactory::GetInstance()->SetTestingFactory( UsersPrivateDelegateFactory::GetInstance()->SetTestingFactory(
profile(), &UsersPrivateApiTest::GetUsersPrivateDelegate); profile(),
base::BindRepeating(&UsersPrivateApiTest::GetUsersPrivateDelegate));
content::RunAllPendingInMessageLoop(); content::RunAllPendingInMessageLoop();
} }
......
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