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

Side by Side 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, 5 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 unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698