OLD | NEW |
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/chromeos/login/user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/policy/browser_policy_connector.h" | 39 #include "chrome/browser/policy/browser_policy_connector.h" |
40 #include "chrome/browser/prefs/scoped_user_pref_update.h" | 40 #include "chrome/browser/prefs/scoped_user_pref_update.h" |
41 #include "chrome/browser/profiles/profile_manager.h" | 41 #include "chrome/browser/profiles/profile_manager.h" |
42 #include "chrome/browser/sync/profile_sync_service.h" | 42 #include "chrome/browser/sync/profile_sync_service.h" |
43 #include "chrome/browser/sync/profile_sync_service_factory.h" | 43 #include "chrome/browser/sync/profile_sync_service_factory.h" |
44 #include "chrome/common/chrome_switches.h" | 44 #include "chrome/common/chrome_switches.h" |
45 #include "chrome/common/pref_names.h" | 45 #include "chrome/common/pref_names.h" |
46 #include "chromeos/chromeos_switches.h" | 46 #include "chromeos/chromeos_switches.h" |
47 #include "chromeos/cryptohome/async_method_caller.h" | 47 #include "chromeos/cryptohome/async_method_caller.h" |
48 #include "chromeos/dbus/dbus_thread_manager.h" | 48 #include "chromeos/dbus/dbus_thread_manager.h" |
49 #include "chromeos/ime/input_method_manager.h" | |
50 #include "chromeos/login/login_state.h" | 49 #include "chromeos/login/login_state.h" |
51 #include "content/public/browser/browser_thread.h" | 50 #include "content/public/browser/browser_thread.h" |
52 #include "content/public/browser/notification_service.h" | 51 #include "content/public/browser/notification_service.h" |
53 #include "google_apis/gaia/gaia_auth_util.h" | 52 #include "google_apis/gaia/gaia_auth_util.h" |
54 #include "google_apis/gaia/google_service_auth_error.h" | 53 #include "google_apis/gaia/google_service_auth_error.h" |
55 #include "policy/policy_constants.h" | 54 #include "policy/policy_constants.h" |
56 #include "ui/views/corewm/corewm_switches.h" | 55 #include "ui/views/corewm/corewm_switches.h" |
57 | 56 |
58 using content::BrowserThread; | 57 using content::BrowserThread; |
59 | 58 |
(...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 base::TimeTicks::Now() - manager_creation_time_; | 1815 base::TimeTicks::Now() - manager_creation_time_; |
1817 if (!last_email.empty() && email != last_email && | 1816 if (!last_email.empty() && email != last_email && |
1818 time_to_login.InSeconds() <= kLogoutToLoginDelayMaxSec) { | 1817 time_to_login.InSeconds() <= kLogoutToLoginDelayMaxSec) { |
1819 UMA_HISTOGRAM_CUSTOM_COUNTS("UserManager.LogoutToLoginDelay", | 1818 UMA_HISTOGRAM_CUSTOM_COUNTS("UserManager.LogoutToLoginDelay", |
1820 time_to_login.InSeconds(), 0, kLogoutToLoginDelayMaxSec, 50); | 1819 time_to_login.InSeconds(), 0, kLogoutToLoginDelayMaxSec, 50); |
1821 } | 1820 } |
1822 } | 1821 } |
1823 } | 1822 } |
1824 | 1823 |
1825 } // namespace chromeos | 1824 } // namespace chromeos |
OLD | NEW |