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

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

Issue 10855244: Remove the --enable-device-policy and --enable-onc-policy flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comment Created 8 years, 4 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 | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e477bae06cb315cb4683ddb462083c28cf1024d6..0b52b59035803cf8a73f301ea8516383a7ba88eb 100644
--- a/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
+++ b/chrome/browser/chromeos/chrome_browser_main_chromeos.cc
@@ -384,9 +384,12 @@ void ChromeBrowserMainPartsChromeos::PreProfileInit() {
// Initialize user policy before creating the profile so the profile
// initialization code sees policy settings.
- g_browser_process->browser_policy_connector()->InitializeUserPolicy(
- username, false /* wait_for_policy_fetch */);
- chromeos::UserManager::Get()->SessionStarted();
+ // Guest accounts are not subject to user policy.
+ if (!chromeos::UserManager::Get()->IsLoggedInAsGuest()) {
+ g_browser_process->browser_policy_connector()->InitializeUserPolicy(
+ username, false /* wait_for_policy_fetch */);
+ chromeos::UserManager::Get()->SessionStarted();
Dmitry Polukhin 2012/08/30 08:48:53 Putting SessionStarted into !IsLoggedInAsGuest bro
+ }
}
// In Aura builds this will initialize ash::Shell.
@@ -413,12 +416,10 @@ void ChromeBrowserMainPartsChromeos::PostProfileInit() {
profile()->GetPrefs()->SetBoolean(prefs::kUseSharedProxies, false);
}
- if (parsed_command_line().HasSwitch(switches::kEnableONCPolicy)) {
- network_config_updater_.reset(
- new policy::NetworkConfigurationUpdater(
- g_browser_process->policy_service(),
- chromeos::CrosLibrary::Get()->GetNetworkLibrary()));
- }
+ network_config_updater_.reset(
+ new policy::NetworkConfigurationUpdater(
+ g_browser_process->policy_service(),
+ chromeos::CrosLibrary::Get()->GetNetworkLibrary()));
// Make sure that wallpaper boot transition and other delays in OOBE
// are disabled for tests by default.
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/existing_user_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698