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

Unified Diff: chrome/browser/android/vr_shell/toolbar_state.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/toolbar_state.cc
diff --git a/chrome/browser/android/vr_shell/toolbar_state.cc b/chrome/browser/android/vr_shell/toolbar_state.cc
new file mode 100644
index 0000000000000000000000000000000000000000..257cc0c859dcf748135517db2be2ba43617b0472
--- /dev/null
+++ b/chrome/browser/android/vr_shell/toolbar_state.cc
@@ -0,0 +1,25 @@
+// 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/toolbar_state.h"
+
+namespace vr_shell {
+
+ToolbarState::ToolbarState()
+ : gurl(GURL()),
+ security_level(security_state::SecurityLevel::NONE),
+ vector_icon(nullptr),
+ should_display_url(true) {}
+
+bool ToolbarState::operator==(const ToolbarState& other) const {
+ return (gurl == other.gurl && security_level == other.security_level &&
+ vector_icon == other.vector_icon &&
+ should_display_url == other.should_display_url);
mthiesse 2017/06/28 00:27:08 Don't care about secure_verbose_text?
cjgrant 2017/06/28 15:14:34 Done. Good catch.
+}
+
+bool ToolbarState::operator!=(const ToolbarState& other) const {
+ return !(*this == other);
+}
+
+} // namespace vr_shell

Powered by Google App Engine
This is Rietveld 408576698