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

Unified Diff: chrome/browser/ui/views/location_bar/origin_chip_view.cc

Issue 345183005: Ensure all members of OriginChipInfo/OriginChipView get initialized. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reupload Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/toolbar/origin_chip_info.cc ('k') | tools/valgrind/drmemory/suppressions_full.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/origin_chip_view.cc
diff --git a/chrome/browser/ui/views/location_bar/origin_chip_view.cc b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
index aa1502d2657ac3d3f6a0605d639707c0d1685332..3290270e38c3975eac7cf19efb981effd54ef8ee 100644
--- a/chrome/browser/ui/views/location_bar/origin_chip_view.cc
+++ b/chrome/browser/ui/views/location_bar/origin_chip_view.cc
@@ -144,7 +144,9 @@ OriginChipView::OriginChipView(LocationBarView* location_bar_view,
location_bar_view_(location_bar_view),
profile_(profile),
showing_16x16_icon_(false),
- fade_in_animation_(this) {
+ fade_in_animation_(this),
+ security_level_(ToolbarModel::NONE),
+ url_malware_(false) {
EnableCanvasFlippingForRTLUI(true);
scoped_refptr<SafeBrowsingService> sb_service =
@@ -174,6 +176,9 @@ OriginChipView::OriginChipView(LocationBarView* location_bar_view,
fade_in_animation_.SetTweenType(gfx::Tween::LINEAR_OUT_SLOW_IN);
fade_in_animation_.SetSlideDuration(175);
+
+ // Ensure various other members get initialized.
+ SetBorderImages(kNormalImages);
}
OriginChipView::~OriginChipView() {
« no previous file with comments | « chrome/browser/ui/toolbar/origin_chip_info.cc ('k') | tools/valgrind/drmemory/suppressions_full.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698