1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20

ash / in_session_auth / mock_in_session_auth_dialog_client.cc [blame]

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ash/in_session_auth/mock_in_session_auth_dialog_client.h"

#include "ash/in_session_auth/webauthn_dialog_controller_impl.h"
#include "ash/shell.h"

namespace ash {

MockInSessionAuthDialogClient::MockInSessionAuthDialogClient() {
  Shell::Get()->webauthn_dialog_controller()->SetClient(this);
}

MockInSessionAuthDialogClient::~MockInSessionAuthDialogClient() {
  Shell::Get()->webauthn_dialog_controller()->SetClient(nullptr);
}

}  // namespace ash