| Index: chrome/browser/policy/cloud_policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/cloud_policy_browsertest.cc b/chrome/browser/policy/cloud_policy_browsertest.cc
|
| index 3149d4858764b7640b8cbd3af7856ebba15057fb..b4e5c39092f207710c20c2752b7c3daa93ba852a 100644
|
| --- a/chrome/browser/policy/cloud_policy_browsertest.cc
|
| +++ b/chrome/browser/policy/cloud_policy_browsertest.cc
|
| @@ -2,12 +2,10 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "base/base_paths.h"
|
| #include "base/command_line.h"
|
| #include "base/file_util.h"
|
| #include "base/files/scoped_temp_dir.h"
|
| #include "base/memory/scoped_ptr.h"
|
| -#include "base/path_service.h"
|
| #include "base/run_loop.h"
|
| #include "base/stringprintf.h"
|
| #include "chrome/browser/browser_process.h"
|
| @@ -117,17 +115,14 @@ class CloudPolicyTest : public InProcessBrowserTest {
|
| virtual ~CloudPolicyTest() {}
|
|
|
| virtual void SetUpInProcessBrowserTestFixture() OVERRIDE {
|
| - // The TestServer wants the docroot as a path relative to the source dir.
|
| - FilePath source;
|
| - ASSERT_TRUE(PathService::Get(base::DIR_SOURCE_ROOT, &source));
|
| - ASSERT_TRUE(temp_dir_.CreateUniqueTempDirUnderPath(source));
|
| + ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
| ASSERT_NO_FATAL_FAILURE(SetServerPolicy(GetEmptyPolicy()));
|
|
|
| test_server_.reset(
|
| new net::TestServer(
|
| net::TestServer::TYPE_HTTP,
|
| net::TestServer::kLocalhost,
|
| - temp_dir_.path().BaseName()));
|
| + temp_dir_.path()));
|
| ASSERT_TRUE(test_server_->Start());
|
|
|
| std::string url = test_server_->GetURL("device_management").spec();
|
|
|