mock_in_session_auth_dialog_client.cc 627 B

1234567891011121314151617181920
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ash/in_session_auth/mock_in_session_auth_dialog_client.h"
  5. #include "ash/in_session_auth/webauthn_dialog_controller_impl.h"
  6. #include "ash/shell.h"
  7. namespace ash {
  8. MockInSessionAuthDialogClient::MockInSessionAuthDialogClient() {
  9. Shell::Get()->webauthn_dialog_controller()->SetClient(this);
  10. }
  11. MockInSessionAuthDialogClient::~MockInSessionAuthDialogClient() {
  12. Shell::Get()->webauthn_dialog_controller()->SetClient(nullptr);
  13. }
  14. } // namespace ash