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

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: similarity 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698