scoped_guest_button_blocker.h 748 B

123456789101112131415161718192021222324
  1. // Copyright 2019 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. #ifndef ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_
  5. #define ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_
  6. namespace ash {
  7. // Class that temporarily disables the Browse as Guest login button on shelf.
  8. class ScopedGuestButtonBlocker {
  9. public:
  10. ScopedGuestButtonBlocker(const ScopedGuestButtonBlocker&) = delete;
  11. ScopedGuestButtonBlocker& operator=(const ScopedGuestButtonBlocker&) = delete;
  12. virtual ~ScopedGuestButtonBlocker() = default;
  13. protected:
  14. ScopedGuestButtonBlocker() = default;
  15. };
  16. } // namespace ash
  17. #endif // ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_