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

Unified Diff: chrome/browser/chromeos/chrome_browser_main_chromeos.cc

Issue 258743005: Enable Enterprise enrollment on desktop builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix linkage visibility of policy protobufs 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
Index: chrome/browser/chromeos/chrome_browser_main_chromeos.cc
diff --git a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
index 78ec16bd1627edd1550dfd855493ed53d4ef8abd..6bb31b370a1bc3d7606bc5816bedca9d2b0ee96e 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -245,16 +245,6 @@ namespace internal {
class DBusServices {
public:
explicit DBusServices(const content::MainFunctionParams& parameters) {
- if (!base::SysInfo::IsRunningOnChromeOS()) {
- // Override this path on the desktop, so that the user policy key can be
- // stored by the stub SessionManagerClient.
- base::FilePath user_data_dir;
- if (PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
- PathService::Override(chromeos::DIR_USER_POLICY_KEYS,
- user_data_dir.AppendASCII("stub_user_policy"));
- }
- }
-
// Initialize DBusThreadManager for the browser. This must be done after
// the main message loop is started, as it uses the message loop.
DBusThreadManager::Initialize();
@@ -402,6 +392,15 @@ void ChromeBrowserMainPartsChromeos::PreMainMessageLoopStart() {
}
void ChromeBrowserMainPartsChromeos::PostMainMessageLoopStart() {
+ base::FilePath user_data_dir;
+ if (!base::SysInfo::IsRunningOnChromeOS() &&
+ PathService::Get(chrome::DIR_USER_DATA, &user_data_dir)) {
+ // Override some paths with stub locations so that cloud policy and
+ // enterprise enrollment work on desktop builds, for ease of
+ // development.
+ chromeos::RegisterStubPathOverrides(user_data_dir);
+ }
+
dbus_services_.reset(new internal::DBusServices(parameters()));
ChromeBrowserMainPartsLinux::PostMainMessageLoopStart();

Powered by Google App Engine
This is Rietveld 408576698