Chromium Code Reviews| 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 |