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

Side by Side Diff: chrome/browser/ui/views/sad_tab_view.cc

Issue 9005015: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/sad_tab_view.h" 5 #include "chrome/browser/ui/views/sad_tab_view.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/google/google_util.h" 9 #include "chrome/browser/google/google_util.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 28 matching lines...) Expand all
39 #endif 39 #endif
40 40
41 SadTabView::SadTabView(TabContents* tab_contents, Kind kind) 41 SadTabView::SadTabView(TabContents* tab_contents, Kind kind)
42 : tab_contents_(tab_contents), 42 : tab_contents_(tab_contents),
43 kind_(kind), 43 kind_(kind),
44 painted_(false), 44 painted_(false),
45 base_font_(ResourceBundle::GetSharedInstance().GetFont( 45 base_font_(ResourceBundle::GetSharedInstance().GetFont(
46 ResourceBundle::BaseFont)), 46 ResourceBundle::BaseFont)),
47 message_(NULL), 47 message_(NULL),
48 help_link_(NULL), 48 help_link_(NULL),
49 feedback_link_(NULL) { 49 feedback_link_(NULL),
50 reload_button_(NULL) {
50 DCHECK(tab_contents); 51 DCHECK(tab_contents);
51 52
52 // Sometimes the user will never see this tab, so keep track of the total 53 // Sometimes the user will never see this tab, so keep track of the total
53 // number of creation events to compare to display events. 54 // number of creation events to compare to display events.
54 UMA_HISTOGRAM_COUNTS("SadTab.Created", kind_); 55 UMA_HISTOGRAM_COUNTS("SadTab.Created", kind_);
55 56
56 // Set the background color. 57 // Set the background color.
57 set_background(views::Background::CreateSolidBackground( 58 set_background(views::Background::CreateSolidBackground(
58 (kind_ == CRASHED) ? kCrashColor : kKillColor)); 59 (kind_ == CRASHED) ? kCrashColor : kKillColor));
59 } 60 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 views::Link* SadTabView::CreateLink(const string16& text) { 194 views::Link* SadTabView::CreateLink(const string16& text) {
194 views::Link* link = new views::Link(text); 195 views::Link* link = new views::Link(text);
195 link->SetFont(base_font_.DeriveFont(kMessageFontSizeDelta)); 196 link->SetFont(base_font_.DeriveFont(kMessageFontSizeDelta));
196 link->SetBackgroundColor(background()->get_color()); 197 link->SetBackgroundColor(background()->get_color());
197 link->SetEnabledColor(kTextColor); 198 link->SetEnabledColor(kTextColor);
198 link->set_listener(this); 199 link->set_listener(this);
199 return link; 200 return link;
200 } 201 }
201 202
202 203
OLDNEW
« no previous file with comments | « chrome/browser/ui/snapshot_tab_helper.cc ('k') | chrome/browser/ui/views/web_intent_picker_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698