OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/app_launch_controller.h" | 5 #include "chrome/browser/chromeos/login/app_launch_controller.h" |
6 | 6 |
7 #include "apps/app_window.h" | 7 #include "apps/app_window.h" |
8 #include "apps/app_window_registry.h" | 8 #include "apps/app_window_registry.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 if (CrosSettings::Get()->GetBoolean( | 289 if (CrosSettings::Get()->GetBoolean( |
290 kAccountsPrefDeviceLocalAccountPromptForNetworkWhenOffline, | 290 kAccountsPrefDeviceLocalAccountPromptForNetworkWhenOffline, |
291 &should_prompt)) { | 291 &should_prompt)) { |
292 return should_prompt; | 292 return should_prompt; |
293 } | 293 } |
294 | 294 |
295 // Default to true to allow network configuration if the policy is missing. | 295 // Default to true to allow network configuration if the policy is missing. |
296 return true; | 296 return true; |
297 } | 297 } |
298 | 298 |
299 return !UserManager::Get()->GetOwnerEmail().empty(); | 299 return !user_manager::UserManager::Get()->GetOwnerEmail().empty(); |
300 } | 300 } |
301 | 301 |
302 bool AppLaunchController::NeedOwnerAuthToConfigureNetwork() { | 302 bool AppLaunchController::NeedOwnerAuthToConfigureNetwork() { |
303 if (need_owner_auth_to_configure_network_callback_) | 303 if (need_owner_auth_to_configure_network_callback_) |
304 return need_owner_auth_to_configure_network_callback_->Run(); | 304 return need_owner_auth_to_configure_network_callback_->Run(); |
305 | 305 |
306 policy::BrowserPolicyConnectorChromeOS* connector = | 306 policy::BrowserPolicyConnectorChromeOS* connector = |
307 g_browser_process->platform_part()->browser_policy_connector_chromeos(); | 307 g_browser_process->platform_part()->browser_policy_connector_chromeos(); |
308 return !connector->IsEnterpriseManaged(); | 308 return !connector->IsEnterpriseManaged(); |
309 } | 309 } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 KioskAppLaunchError::Save(error); | 418 KioskAppLaunchError::Save(error); |
419 chrome::AttemptUserExit(); | 419 chrome::AttemptUserExit(); |
420 CleanUp(); | 420 CleanUp(); |
421 } | 421 } |
422 | 422 |
423 bool AppLaunchController::IsShowingNetworkConfigScreen() { | 423 bool AppLaunchController::IsShowingNetworkConfigScreen() { |
424 return network_config_requested_; | 424 return network_config_requested_; |
425 } | 425 } |
426 | 426 |
427 } // namespace chromeos | 427 } // namespace chromeos |
OLD | NEW |