| Index: chrome/browser/password_manager/chrome_password_manager_client.cc
|
| diff --git a/chrome/browser/password_manager/chrome_password_manager_client.cc b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| index 19e3d7e39e71d8f6abe01bd81df5fc9b6e961bd2..52288f8a5cfa91a33672fe3cf28f5dbf806484aa 100644
|
| --- a/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| +++ b/chrome/browser/password_manager/chrome_password_manager_client.cc
|
| @@ -88,6 +88,11 @@
|
| #include "extensions/common/constants.h"
|
| #endif
|
|
|
| +#include "device/vr/features/features.h"
|
| +#if BUILDFLAG(ENABLE_VR)
|
| +#include "chrome/browser/android/vr_shell/vr_tab_helper.h"
|
| +#endif // BUILDFLAG(ENABLE_VR)
|
| +
|
| using password_manager::ContentPasswordManagerDriverFactory;
|
| using password_manager::PasswordManagerInternalsService;
|
| using sessions::SerializedNavigationEntry;
|
| @@ -209,6 +214,14 @@ bool ChromePasswordManagerClient::IsPasswordManagementEnabledForCurrentPage()
|
| is_enabled =
|
| entry->GetURL().host_piece() != chrome::kChromeUIChromeSigninHost;
|
| }
|
| +
|
| +#if BUILDFLAG(ENABLE_VR)
|
| + // The password manager is disabled while VR (virtual reality) is being used,
|
| + // as the use of conventional UI elements might harm the user experience in
|
| + // VR.
|
| + is_enabled = is_enabled && !vr_shell::VrTabHelper::IsInVr(web_contents());
|
| +#endif // BUILDFLAG(ENABLE_VR)
|
| +
|
| if (log_manager_->IsLoggingActive()) {
|
| password_manager::BrowserSavePasswordProgressLogger logger(
|
| log_manager_.get());
|
|
|