[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / views / tabs / tab_renderer_data.cc
blob6057b324b6d1b2410b4d0b2c32b173d0884adcb6
1 // Copyright (c) 2012 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.
5 #include "chrome/browser/ui/views/tabs/tab_renderer_data.h"
7 TabRendererData::TabRendererData()
8 : network_state(NETWORK_STATE_NONE),
9 loading(false),
10 crashed_status(base::TERMINATION_STATUS_STILL_RUNNING),
11 incognito(false),
12 show_icon(true),
13 mini(false),
14 blocked(false),
15 app(false),
16 media_state(TAB_MEDIA_STATE_NONE) {
19 TabRendererData::~TabRendererData() {}
21 bool TabRendererData::Equals(const TabRendererData& data) {
22 return
23 favicon.BackedBySameObjectAs(data.favicon) &&
24 network_state == data.network_state &&
25 title == data.title &&
26 url == data.url &&
27 loading == data.loading &&
28 crashed_status == data.crashed_status &&
29 incognito == data.incognito &&
30 show_icon == data.show_icon &&
31 mini == data.mini &&
32 blocked == data.blocked &&
33 app == data.app &&
34 media_state == data.media_state;