| Index: content/browser/utility_process_host_impl_browsertest.cc
|
| diff --git a/content/browser/utility_process_host_impl_browsertest.cc b/content/browser/utility_process_host_impl_browsertest.cc
|
| index b8a496be6a50515b27418984714749cc2b0e74e0..f152367257fa0a2d7b4e08f7ee440b00b2735c00 100644
|
| --- a/content/browser/utility_process_host_impl_browsertest.cc
|
| +++ b/content/browser/utility_process_host_impl_browsertest.cc
|
| @@ -17,25 +17,21 @@
|
|
|
| class UtilityProcessHostImplBrowserTest : public ContentBrowserTest {
|
| public:
|
| - void RunUtilityProcess(bool elevated) {
|
| + void RunUtilityProcess() {
|
| base::RunLoop run_loop;
|
| done_closure_ = run_loop.QuitClosure();
|
| BrowserThread::PostTask(
|
| BrowserThread::IO, FROM_HERE,
|
| base::Bind(
|
| &UtilityProcessHostImplBrowserTest::RunUtilityProcessOnIOThread,
|
| - base::Unretained(this), elevated));
|
| + base::Unretained(this)));
|
| run_loop.Run();
|
| }
|
|
|
| protected:
|
| - void RunUtilityProcessOnIOThread(bool elevated) {
|
| + void RunUtilityProcessOnIOThread() {
|
| UtilityProcessHost* host = UtilityProcessHost::Create(nullptr, nullptr);
|
| host->SetName(base::ASCIIToUTF16("TestProcess"));
|
| -#if defined(OS_WIN)
|
| - if (elevated)
|
| - host->ElevatePrivileges();
|
| -#endif
|
| EXPECT_TRUE(host->Start());
|
|
|
| ServiceRegistry* service_registry = host->GetServiceRegistry();
|
| @@ -55,14 +51,7 @@
|
| };
|
|
|
| IN_PROC_BROWSER_TEST_F(UtilityProcessHostImplBrowserTest, LaunchProcess) {
|
| - RunUtilityProcess(false);
|
| + RunUtilityProcess();
|
| }
|
|
|
| -#if defined(OS_WIN)
|
| -IN_PROC_BROWSER_TEST_F(UtilityProcessHostImplBrowserTest,
|
| - LaunchElevatedProcess) {
|
| - RunUtilityProcess(true);
|
| -}
|
| -#endif
|
| -
|
| } // namespace content
|
|
|