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

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

Issue 2902393002: [vr] Bail on unhandled code points. (Closed)
Patch Set: histograms 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 332d73b7a95068b8b90cd91db39e7b47e5f17b64..8a54952afa159ebf29b7bf43f60ece750813769f 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;

Powered by Google App Engine
This is Rietveld 408576698