forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ChromeOS: Remove Guest button when Reset screen is displayed.
This Cl adds ScopedGuestButtonBlocker to temporarily hide Guest login button, and blocks this button while Reset screen is shown. Bug: 962398 TBR=oshima@chromium.org Change-Id: I799d5723b4aea2a999a383c8635c790a2f510047 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1672629 Reviewed-by: Alexander Alekseev <alemate@chromium.org> Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by: Achuith Bhandarkar <achuith@chromium.org> Commit-Queue: Alexander Alekseev <alemate@chromium.org> Cr-Commit-Position: refs/heads/master@{#680731}
- Loading branch information
Alexander Alekseev
authored and
Commit Bot
committed
Jul 25, 2019
1 parent
8beb3ee
commit 7020c6b
Showing
13 changed files
with
174 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright 2019 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_ | ||
#define ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_ | ||
|
||
#include "base/macros.h" | ||
|
||
namespace ash { | ||
|
||
// Class that temporarily disables the Browse as Guest login button on shelf. | ||
class ScopedGuestButtonBlocker { | ||
public: | ||
virtual ~ScopedGuestButtonBlocker() = default; | ||
|
||
protected: | ||
ScopedGuestButtonBlocker() = default; | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(ScopedGuestButtonBlocker); | ||
}; | ||
|
||
} // namespace ash | ||
|
||
#endif // ASH_PUBLIC_CPP_SCOPED_GUEST_BUTTON_BLOCKER_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.