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

Unified Diff: chrome/browser/android/vr_shell/ui_scene_manager.cc

Issue 2960903002: VR: Use ToolbarModel to drive VR URL bar state. (Closed)
Patch Set: Created 3 years, 6 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_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 2258091639514f2298254f4f1e5da8238b9565e9..0249b6d8d496a1c49c03203ba388769d6b551bea 100644
--- a/chrome/browser/android/vr_shell/ui_scene_manager.cc
+++ b/chrome/browser/android/vr_shell/ui_scene_manager.cc
@@ -704,15 +704,9 @@ void UiSceneManager::OnExitPromptSecondaryButtonClicked() {
OnUnsupportedMode(UiUnsupportedMode::kUnhandledPageInfo);
}
-void UiSceneManager::SetURL(const GURL& gurl) {
- url_bar_->SetURL(gurl);
- transient_url_bar_->SetURL(gurl);
-}
-
-void UiSceneManager::SetSecurityInfo(security_state::SecurityLevel level,
- bool malware) {
- url_bar_->SetSecurityInfo(level, malware);
- transient_url_bar_->SetSecurityInfo(level, malware);
+void UiSceneManager::SetToolbarState(const ToolbarState& state) {
+ url_bar_->SetToolbarState(state);
+ transient_url_bar_->SetToolbarState(state);
}
void UiSceneManager::SetLoading(bool loading) {

Powered by Google App Engine
This is Rietveld 408576698