OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/login_performer.h" | 5 #include "chrome/browser/chromeos/login/login_performer.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/metrics/histogram.h" | 13 #include "base/metrics/histogram.h" |
14 #include "base/threading/thread_restrictions.h" | 14 #include "base/threading/thread_restrictions.h" |
15 #include "base/utf_string_conversions.h" | 15 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/browser_process.h" | 16 #include "chrome/browser/browser_process.h" |
17 #include "chrome/browser/chromeos/boot_times_loader.h" | 17 #include "chrome/browser/chromeos/boot_times_loader.h" |
18 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_metrics.h" | |
19 #include "chrome/browser/chromeos/login/login_utils.h" | 18 #include "chrome/browser/chromeos/login/login_utils.h" |
20 #include "chrome/browser/chromeos/login/screen_locker.h" | 19 #include "chrome/browser/chromeos/login/screen_locker.h" |
21 #include "chrome/browser/chromeos/settings/cros_settings.h" | 20 #include "chrome/browser/chromeos/settings/cros_settings.h" |
22 #include "chrome/browser/chromeos/settings/cros_settings_names.h" | 21 #include "chrome/browser/chromeos/settings/cros_settings_names.h" |
23 #include "chrome/browser/prefs/pref_service.h" | 22 #include "chrome/browser/prefs/pref_service.h" |
24 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
25 #include "chrome/browser/profiles/profile_manager.h" | 24 #include "chrome/browser/profiles/profile_manager.h" |
26 #include "chrome/common/chrome_notification_types.h" | 25 #include "chrome/common/chrome_notification_types.h" |
27 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/net/gaia/gaia_auth_util.h" | 27 #include "chrome/common/net/gaia/gaia_auth_util.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // happens during offline auth only. | 115 // happens during offline auth only. |
117 // UNLOCK_FAILED is used during normal screen lock case. | 116 // UNLOCK_FAILED is used during normal screen lock case. |
118 // TODO(nkostylev) DATA_REMOVAL_FAILED - ? | 117 // TODO(nkostylev) DATA_REMOVAL_FAILED - ? |
119 NOTREACHED(); | 118 NOTREACHED(); |
120 } | 119 } |
121 } | 120 } |
122 | 121 |
123 void LoginPerformer::OnDemoUserLoginSuccess() { | 122 void LoginPerformer::OnDemoUserLoginSuccess() { |
124 content::RecordAction( | 123 content::RecordAction( |
125 UserMetricsAction("Login_DemoUserLoginSuccess")); | 124 UserMetricsAction("Login_DemoUserLoginSuccess")); |
126 KioskModeMetrics::Get()->SessionStarted(); | |
127 | 125 |
128 LoginStatusConsumer::OnDemoUserLoginSuccess(); | 126 LoginStatusConsumer::OnDemoUserLoginSuccess(); |
129 } | 127 } |
130 | 128 |
131 void LoginPerformer::OnLoginSuccess( | 129 void LoginPerformer::OnLoginSuccess( |
132 const std::string& username, | 130 const std::string& username, |
133 const std::string& password, | 131 const std::string& password, |
134 bool pending_requests, | 132 bool pending_requests, |
135 bool using_oauth) { | 133 bool using_oauth) { |
136 content::RecordAction(UserMetricsAction("Login_Success")); | 134 content::RecordAction(UserMetricsAction("Login_Success")); |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 profile, | 565 profile, |
568 username_, | 566 username_, |
569 password_, | 567 password_, |
570 std::string(), | 568 std::string(), |
571 std::string())); | 569 std::string())); |
572 } | 570 } |
573 password_.clear(); | 571 password_.clear(); |
574 } | 572 } |
575 | 573 |
576 } // namespace chromeos | 574 } // namespace chromeos |
OLD | NEW |