Index: chrome/browser/android/vr_shell/ui_scene_manager.cc |
diff --git a/chrome/browser/android/vr_shell/ui_scene_manager.cc b/chrome/browser/android/vr_shell/ui_scene_manager.cc |
index bcabd907ff32f1ba0badcfedd5b4fd8ccaceaeee..99c3d494a2e7c83f5fe5726ce00b504613c590b1 100644 |
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc |
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc |
@@ -14,6 +14,7 @@ |
#include "chrome/browser/android/vr_shell/ui_elements/permanent_security_warning.h" |
#include "chrome/browser/android/vr_shell/ui_elements/transient_security_warning.h" |
#include "chrome/browser/android/vr_shell/ui_elements/ui_element.h" |
+#include "chrome/browser/android/vr_shell/ui_elements/ui_element_identifiers.h" |
#include "chrome/browser/android/vr_shell/ui_elements/url_bar.h" |
#include "chrome/browser/android/vr_shell/ui_elements/video_capture_indicator.h" |
#include "chrome/browser/android/vr_shell/ui_scene.h" |
@@ -84,6 +85,7 @@ UiSceneManager::UiSceneManager(VrBrowserInterface* browser, |
CreateCloseButton(); |
ConfigureScene(); |
+ ConfigureSecurityWarnings(); |
} |
UiSceneManager::~UiSceneManager() {} |
@@ -94,6 +96,7 @@ void UiSceneManager::CreateSecurityWarnings() { |
// TODO(mthiesse): Programatically compute the proper texture size for these |
// textured UI elements. |
element = base::MakeUnique<PermanentSecurityWarning>(512); |
+ element->set_identifier(kWebVrPermanentHttpSecurityWarning); |
element->set_id(AllocateId()); |
element->set_fill(vr_shell::Fill::NONE); |
element->set_size({kPermanentWarningWidth, kPermanentWarningHeight, 1}); |
@@ -109,6 +112,7 @@ void UiSceneManager::CreateSecurityWarnings() { |
scene_->AddUiElement(std::move(element)); |
element = base::MakeUnique<TransientSecurityWarning>(1024); |
+ element->set_identifier(kWebVrTransientHttpSecurityWarning); |
element->set_id(AllocateId()); |
element->set_fill(vr_shell::Fill::NONE); |
element->set_size({kTransientWarningWidth, kTransientWarningHeight, 1}); |
@@ -268,6 +272,7 @@ void UiSceneManager::SetWebVrMode(bool web_vr) { |
return; |
web_vr_mode_ = web_vr; |
ConfigureScene(); |
+ ConfigureSecurityWarnings(); |
} |
void UiSceneManager::ConfigureScene() { |