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

Side by Side Diff: chrome/browser/chromeos/login/app_launch_controller.cc

Issue 444903002: [cros] user_manager component - move UserManagerBase and UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 #include "chrome/browser/chromeos/login/ui/login_display_host.h" 24 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
25 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h" 25 #include "chrome/browser/chromeos/login/ui/login_display_host_impl.h"
26 #include "chrome/browser/chromeos/login/ui/oobe_display.h" 26 #include "chrome/browser/chromeos/login/ui/oobe_display.h"
27 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" 27 #include "chrome/browser/chromeos/login/ui/webui_login_view.h"
28 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" 28 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
29 #include "chrome/browser/chromeos/settings/cros_settings.h" 29 #include "chrome/browser/chromeos/settings/cros_settings.h"
30 #include "chrome/browser/lifetime/application_lifetime.h" 30 #include "chrome/browser/lifetime/application_lifetime.h"
31 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handle r.h" 32 #include "chrome/browser/ui/webui/chromeos/login/app_launch_splash_screen_handle r.h"
33 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 33 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
34 #include "components/user_manager/user_manager.h"
34 #include "content/public/browser/notification_service.h" 35 #include "content/public/browser/notification_service.h"
35 #include "net/base/network_change_notifier.h" 36 #include "net/base/network_change_notifier.h"
36 37
37 namespace chromeos { 38 namespace chromeos {
38 39
39 namespace { 40 namespace {
40 41
41 // Application install splash screen minimum show time in milliseconds. 42 // Application install splash screen minimum show time in milliseconds.
42 const int kAppInstallSplashScreenMinTimeMS = 3000; 43 const int kAppInstallSplashScreenMinTimeMS = 3000;
43 44
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 if (CrosSettings::Get()->GetBoolean( 290 if (CrosSettings::Get()->GetBoolean(
290 kAccountsPrefDeviceLocalAccountPromptForNetworkWhenOffline, 291 kAccountsPrefDeviceLocalAccountPromptForNetworkWhenOffline,
291 &should_prompt)) { 292 &should_prompt)) {
292 return should_prompt; 293 return should_prompt;
293 } 294 }
294 295
295 // Default to true to allow network configuration if the policy is missing. 296 // Default to true to allow network configuration if the policy is missing.
296 return true; 297 return true;
297 } 298 }
298 299
299 return !UserManager::Get()->GetOwnerEmail().empty(); 300 return !user_manager::UserManager::Get()->GetOwnerEmail().empty();
300 } 301 }
301 302
302 bool AppLaunchController::NeedOwnerAuthToConfigureNetwork() { 303 bool AppLaunchController::NeedOwnerAuthToConfigureNetwork() {
303 if (need_owner_auth_to_configure_network_callback_) 304 if (need_owner_auth_to_configure_network_callback_)
304 return need_owner_auth_to_configure_network_callback_->Run(); 305 return need_owner_auth_to_configure_network_callback_->Run();
305 306
306 policy::BrowserPolicyConnectorChromeOS* connector = 307 policy::BrowserPolicyConnectorChromeOS* connector =
307 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 308 g_browser_process->platform_part()->browser_policy_connector_chromeos();
308 return !connector->IsEnterpriseManaged(); 309 return !connector->IsEnterpriseManaged();
309 } 310 }
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 KioskAppLaunchError::Save(error); 419 KioskAppLaunchError::Save(error);
419 chrome::AttemptUserExit(); 420 chrome::AttemptUserExit();
420 CleanUp(); 421 CleanUp();
421 } 422 }
422 423
423 bool AppLaunchController::IsShowingNetworkConfigScreen() { 424 bool AppLaunchController::IsShowingNetworkConfigScreen() {
424 return network_config_requested_; 425 return network_config_requested_;
425 } 426 }
426 427
427 } // namespace chromeos 428 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.cc ('k') | chrome/browser/chromeos/login/app_launch_signin_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698