Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/signin/easy_unlock_service_regular.h" | 5 #include "chrome/browser/signin/easy_unlock_service_regular.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/base64url.h" | 11 #include "base/base64url.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/sys_info.h" | 16 #include "base/sys_info.h" |
| 17 #include "base/time/default_clock.h" | 17 #include "base/time/default_clock.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "chrome/browser/browser_process.h" | 20 #include "chrome/browser/browser_process.h" |
| 21 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
| 22 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" | 22 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
| 23 #include "chrome/browser/signin/chrome_proximity_auth_client.h" | 23 #include "chrome/browser/signin/chrome_proximity_auth_client.h" |
| 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 24 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 25 #include "chrome/browser/signin/signin_manager_factory.h" | 25 #include "chrome/browser/signin/signin_manager_factory.h" |
| 26 #include "chrome/common/extensions/api/easy_unlock_private.h" | 26 #include "chrome/common/extensions/api/easy_unlock_private.h" |
| 27 #include "chrome/common/extensions/extension_constants.h" | 27 #include "chrome/common/extensions/extension_constants.h" |
| 28 #include "chrome/common/pref_names.h" | 28 #include "chrome/common/pref_names.h" |
| 29 #include "chromeos/login/user_names.h" | |
| 30 #include "components/gcm_driver/gcm_profile_service.h" | 29 #include "components/gcm_driver/gcm_profile_service.h" |
| 31 #include "components/pref_registry/pref_registry_syncable.h" | 30 #include "components/pref_registry/pref_registry_syncable.h" |
| 32 #include "components/prefs/pref_service.h" | 31 #include "components/prefs/pref_service.h" |
| 33 #include "components/prefs/scoped_user_pref_update.h" | 32 #include "components/prefs/scoped_user_pref_update.h" |
| 34 #include "components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h" | 33 #include "components/proximity_auth/cryptauth/cryptauth_access_token_fetcher.h" |
| 35 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" | 34 #include "components/proximity_auth/cryptauth/cryptauth_client_impl.h" |
| 36 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h" | 35 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_manager.h" |
| 37 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" | 36 #include "components/proximity_auth/cryptauth/cryptauth_enrollment_utils.h" |
| 38 #include "components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h" | 37 #include "components/proximity_auth/cryptauth/cryptauth_gcm_manager_impl.h" |
| 39 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" | 38 #include "components/proximity_auth/cryptauth/secure_message_delegate.h" |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 57 #include "apps/app_lifetime_monitor_factory.h" | 56 #include "apps/app_lifetime_monitor_factory.h" |
| 58 #include "ash/display/display_manager.h" | 57 #include "ash/display/display_manager.h" |
| 59 #include "ash/shell.h" | 58 #include "ash/shell.h" |
| 60 #include "base/linux_util.h" | 59 #include "base/linux_util.h" |
| 61 #include "base/threading/thread_task_runner_handle.h" | 60 #include "base/threading/thread_task_runner_handle.h" |
| 62 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" | 61 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h" |
| 63 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h" | 62 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h" |
| 64 #include "chrome/browser/chromeos/login/session/user_session_manager.h" | 63 #include "chrome/browser/chromeos/login/session/user_session_manager.h" |
| 65 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 64 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 66 #include "components/user_manager/user_manager.h" | 65 #include "components/user_manager/user_manager.h" |
| 66 #include "components/user_manager/user_names.h" | |
|
stevenjb
2016/10/26 22:31:08
needed?
Alexander Alekseev
2016/10/27 04:18:35
Done.
| |
| 67 #include "ui/display/manager/managed_display_info.h" | 67 #include "ui/display/manager/managed_display_info.h" |
| 68 #endif | 68 #endif |
| 69 | 69 |
| 70 namespace { | 70 namespace { |
| 71 | 71 |
| 72 // Key name of the local device permit record dictonary in kEasyUnlockPairing. | 72 // Key name of the local device permit record dictonary in kEasyUnlockPairing. |
| 73 const char kKeyPermitAccess[] = "permitAccess"; | 73 const char kKeyPermitAccess[] = "permitAccess"; |
| 74 | 74 |
| 75 // Key name of the remote device list in kEasyUnlockPairing. | 75 // Key name of the remote device list in kEasyUnlockPairing. |
| 76 const char kKeyDevices[] = "devices"; | 76 const char kKeyDevices[] = "devices"; |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 681 PA_LOG(INFO) << "Refresh token not yet available, " | 681 PA_LOG(INFO) << "Refresh token not yet available, " |
| 682 << "waiting before starting CryptAuth managers"; | 682 << "waiting before starting CryptAuth managers"; |
| 683 token_service->AddObserver(this); | 683 token_service->AddObserver(this); |
| 684 } | 684 } |
| 685 | 685 |
| 686 device_manager_->AddObserver(this); | 686 device_manager_->AddObserver(this); |
| 687 enrollment_manager_->Start(); | 687 enrollment_manager_->Start(); |
| 688 device_manager_->Start(); | 688 device_manager_->Start(); |
| 689 } | 689 } |
| 690 #endif | 690 #endif |
| OLD | NEW |