Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: chromeos/chromeos_paths.cc

Issue 265013002: Revert of Enable Enterprise enrollment on desktop builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos_paths.h ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/chromeos_paths.cc
diff --git a/chromeos/chromeos_paths.cc b/chromeos/chromeos_paths.cc
index a9963affe335654e38df140c71d496dfbebd4af2..25174d45ddd1a3f534aa46bafad46209ed7767e6 100644
--- a/chromeos/chromeos_paths.cc
+++ b/chromeos/chromeos_paths.cc
@@ -4,10 +4,8 @@
#include "chromeos/chromeos_paths.h"
-#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
-#include "base/sys_info.h"
namespace chromeos {
@@ -79,26 +77,4 @@
PathService::RegisterProvider(PathProvider, PATH_START, PATH_END);
}
-void RegisterStubPathOverrides(const base::FilePath& stubs_dir) {
- CHECK(!base::SysInfo::IsRunningOnChromeOS());
- // Override these paths on the desktop, so that enrollment and cloud
- // policy work and can be tested.
- base::FilePath parent = base::MakeAbsoluteFilePath(stubs_dir);
- PathService::Override(
- DIR_USER_POLICY_KEYS,
- parent.AppendASCII("stub_user_policy"));
- const bool is_absolute = true;
- const bool create = false;
- PathService::OverrideAndCreateIfNeeded(
- FILE_OWNER_KEY,
- parent.AppendASCII("stub_owner.key"),
- is_absolute,
- create);
- PathService::OverrideAndCreateIfNeeded(
- FILE_INSTALL_ATTRIBUTES,
- parent.AppendASCII("stub_install_attributes.pb"),
- is_absolute,
- create);
-}
-
} // namespace chromeos
« no previous file with comments | « chromeos/chromeos_paths.h ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698