Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/android/vr_shell/toolbar_state.h" | |
| 6 | |
| 7 namespace vr_shell { | |
| 8 | |
| 9 ToolbarState::ToolbarState() | |
| 10 : gurl(GURL()), | |
| 11 security_level(security_state::SecurityLevel::NONE), | |
| 12 vector_icon(nullptr), | |
| 13 should_display_url(true) {} | |
| 14 | |
| 15 bool ToolbarState::operator==(const ToolbarState& other) const { | |
| 16 return (gurl == other.gurl && security_level == other.security_level && | |
| 17 vector_icon == other.vector_icon && | |
| 18 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.
| |
| 19 } | |
| 20 | |
| 21 bool ToolbarState::operator!=(const ToolbarState& other) const { | |
| 22 return !(*this == other); | |
| 23 } | |
| 24 | |
| 25 } // namespace vr_shell | |
| OLD | NEW |