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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc

Issue 2677563005: Chromad: Use DM server reply to determine enrollment type (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/ui/webui/chromeos/login/signin_screen_handler.h" 5 #include "chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h" 68 #include "chrome/browser/ui/webui/chromeos/login/native_window_delegate.h"
69 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h" 69 #include "chrome/browser/ui/webui/chromeos/login/network_state_informer.h"
70 #include "chrome/common/channel_info.h" 70 #include "chrome/common/channel_info.h"
71 #include "chrome/common/pref_names.h" 71 #include "chrome/common/pref_names.h"
72 #include "chrome/common/url_constants.h" 72 #include "chrome/common/url_constants.h"
73 #include "chrome/grit/chromium_strings.h" 73 #include "chrome/grit/chromium_strings.h"
74 #include "chrome/grit/generated_resources.h" 74 #include "chrome/grit/generated_resources.h"
75 #include "chromeos/chromeos_switches.h" 75 #include "chromeos/chromeos_switches.h"
76 #include "chromeos/dbus/dbus_thread_manager.h" 76 #include "chromeos/dbus/dbus_thread_manager.h"
77 #include "chromeos/dbus/power_manager_client.h" 77 #include "chromeos/dbus/power_manager_client.h"
78 #include "chromeos/dbus/upstart_client.h"
79 #include "chromeos/login/auth/key.h" 78 #include "chromeos/login/auth/key.h"
80 #include "chromeos/login/auth/user_context.h" 79 #include "chromeos/login/auth/user_context.h"
81 #include "chromeos/network/network_state.h" 80 #include "chromeos/network/network_state.h"
82 #include "chromeos/network/network_state_handler.h" 81 #include "chromeos/network/network_state_handler.h"
83 #include "components/login/localized_values_builder.h" 82 #include "components/login/localized_values_builder.h"
84 #include "components/prefs/pref_registry_simple.h" 83 #include "components/prefs/pref_registry_simple.h"
85 #include "components/prefs/pref_service.h" 84 #include "components/prefs/pref_service.h"
86 #include "components/prefs/scoped_user_pref_update.h" 85 #include "components/prefs/scoped_user_pref_update.h"
87 #include "components/proximity_auth/screenlock_bridge.h" 86 #include "components/proximity_auth/screenlock_bridge.h"
88 #include "components/strings/grit/components_strings.h" 87 #include "components/strings/grit/components_strings.h"
(...skipping 1124 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 1212
1214 void SigninScreenHandler::HandleToggleEnrollmentAd() { 1213 void SigninScreenHandler::HandleToggleEnrollmentAd() {
1215 // TODO(rsorokin): Cleanup enrollment flow for Active Directory. (see 1214 // TODO(rsorokin): Cleanup enrollment flow for Active Directory. (see
1216 // crbug.com/668491). 1215 // crbug.com/668491).
1217 if (chrome::GetChannel() == version_info::Channel::BETA || 1216 if (chrome::GetChannel() == version_info::Channel::BETA ||
1218 chrome::GetChannel() == version_info::Channel::STABLE) { 1217 chrome::GetChannel() == version_info::Channel::STABLE) {
1219 return; 1218 return;
1220 } 1219 }
1221 base::CommandLine::ForCurrentProcess()->AppendSwitch( 1220 base::CommandLine::ForCurrentProcess()->AppendSwitch(
1222 chromeos::switches::kEnableAd); 1221 chromeos::switches::kEnableAd);
1223 chromeos::DBusThreadManager::Get()
1224 ->GetUpstartClient()
1225 ->StartAuthPolicyService();
1226 } 1222 }
1227 1223
1228 void SigninScreenHandler::HandleToggleEnableDebuggingScreen() { 1224 void SigninScreenHandler::HandleToggleEnableDebuggingScreen() {
1229 if (delegate_) 1225 if (delegate_)
1230 delegate_->ShowEnableDebuggingScreen(); 1226 delegate_->ShowEnableDebuggingScreen();
1231 } 1227 }
1232 1228
1233 void SigninScreenHandler::HandleToggleKioskEnableScreen() { 1229 void SigninScreenHandler::HandleToggleKioskEnableScreen() {
1234 policy::BrowserPolicyConnectorChromeOS* connector = 1230 policy::BrowserPolicyConnectorChromeOS* connector =
1235 g_browser_process->platform_part()->browser_policy_connector_chromeos(); 1231 g_browser_process->platform_part()->browser_policy_connector_chromeos();
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1549 } 1545 }
1550 1546
1551 void SigninScreenHandler::OnFeedbackFinished() { 1547 void SigninScreenHandler::OnFeedbackFinished() {
1552 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI"); 1548 CallJS("login.UnrecoverableCryptohomeErrorScreen.resumeAfterFeedbackUI");
1553 1549
1554 // Recreate user's cryptohome after the feedback is attempted. 1550 // Recreate user's cryptohome after the feedback is attempted.
1555 HandleResyncUserData(); 1551 HandleResyncUserData();
1556 } 1552 }
1557 1553
1558 } // namespace chromeos 1554 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698