Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Unified Diff: chrome/browser/android/vr_shell/ui_elements/transient_security_warning.cc

Issue 2834543006: Hook up insecure content warnings for http webVR presentation. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/ui_elements/transient_security_warning.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements/transient_security_warning.cc b/chrome/browser/android/vr_shell/ui_elements/transient_security_warning.cc
new file mode 100644
index 0000000000000000000000000000000000000000..f69e8311e07bc689f9d016340c990cbb9e878047
--- /dev/null
+++ b/chrome/browser/android/vr_shell/ui_elements/transient_security_warning.cc
@@ -0,0 +1,22 @@
+// Copyright 2017 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.
+
+#include "chrome/browser/android/vr_shell/ui_elements/transient_security_warning.h"
+
+#include "base/memory/ptr_util.h"
+#include "chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.h"
+
+namespace vr_shell {
+
+TransientSecurityWarning::TransientSecurityWarning(int preferred_width)
+ : TexturedElement(preferred_width),
+ texture_(base::MakeUnique<InsecureContentTransientTexture>()) {}
+
+TransientSecurityWarning::~TransientSecurityWarning() = default;
+
+UiTexture* TransientSecurityWarning::GetTexture() const {
+ return texture_.get();
+}
+
+} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698