| Index: content/shell/utility/shell_content_utility_client.cc
|
| diff --git a/content/shell/utility/shell_content_utility_client.cc b/content/shell/utility/shell_content_utility_client.cc
|
| index 0ed0358579857e00e2cdda857aea3819105e7ac5..4200576503f5781ad290b77457a1dd56a072ed1f 100644
|
| --- a/content/shell/utility/shell_content_utility_client.cc
|
| +++ b/content/shell/utility/shell_content_utility_client.cc
|
| @@ -8,8 +8,11 @@
|
| #include <utility>
|
|
|
| #include "base/bind.h"
|
| +#include "base/files/scoped_temp_dir.h"
|
| +#include "base/process/process.h"
|
| #include "content/public/common/service_registry.h"
|
| #include "content/public/test/test_mojo_app.h"
|
| +#include "content/public/test/test_mojo_service.mojom.h"
|
| #include "mojo/public/cpp/bindings/strong_binding.h"
|
|
|
| namespace content {
|
| @@ -27,6 +30,16 @@ class TestMojoServiceImpl : public mojom::TestMojoService {
|
| callback.Run();
|
| }
|
|
|
| + void DoTerminateProcess(const DoTerminateProcessCallback& callback) override {
|
| + base::Process::Current().Terminate(0, false);
|
| + }
|
| +
|
| + void CreateFolder(const CreateFolderCallback& callback) override {
|
| + // Note: This is used to check if the sandbox is disabled or not since
|
| + // creating a folder is forbidden when it is enabled.
|
| + callback.Run(base::ScopedTempDir().CreateUniqueTempDir());
|
| + }
|
| +
|
| void GetRequestorName(const GetRequestorNameCallback& callback) override {
|
| NOTREACHED();
|
| }
|
|
|