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

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

Issue 2914543002: [vr] Bail on unhandled code points. (Closed)
Patch Set: Created 3 years, 7 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/url_bar.cc
diff --git a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
index e588ca88ec22346e6522bdac56788139e919e7f5..1cd156a010994ad421f95fa6d457634254f80b22 100644
--- a/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
+++ b/chrome/browser/android/vr_shell/ui_elements/url_bar.cc
@@ -19,9 +19,10 @@ constexpr int64_t kUpdateDelayMS = 50;
} // namespace
-UrlBar::UrlBar(int preferred_width)
+UrlBar::UrlBar(int preferred_width,
+ const base::Callback<void(UiUnsupportedMode)>& failure_callback)
: TexturedElement(preferred_width),
- texture_(base::MakeUnique<UrlBarTexture>()) {}
+ texture_(base::MakeUnique<UrlBarTexture>(failure_callback)) {}
UrlBar::~UrlBar() = default;
« no previous file with comments | « chrome/browser/android/vr_shell/ui_elements/url_bar.h ('k') | chrome/browser/android/vr_shell/ui_scene_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698