| Index: chrome/browser/android/vr_shell/ui_elements/permanent_security_warning.cc
|
| diff --git a/chrome/browser/android/vr_shell/ui_elements/permanent_security_warning.cc b/chrome/browser/android/vr_shell/ui_elements/permanent_security_warning.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a3356c39488ad0fee35352d897c7729e47cfa9a6
|
| --- /dev/null
|
| +++ b/chrome/browser/android/vr_shell/ui_elements/permanent_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/permanent_security_warning.h"
|
| +
|
| +#include "base/memory/ptr_util.h"
|
| +#include "chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.h"
|
| +
|
| +namespace vr_shell {
|
| +
|
| +PermanentSecurityWarning::PermanentSecurityWarning(int preferred_width)
|
| + : TexturedElement(preferred_width),
|
| + texture_(base::MakeUnique<InsecureContentPermanentTexture>()) {}
|
| +
|
| +PermanentSecurityWarning::~PermanentSecurityWarning() = default;
|
| +
|
| +UiTexture* PermanentSecurityWarning::GetTexture() const {
|
| + return texture_.get();
|
| +}
|
| +
|
| +} // namespace vr_shell
|
|
|