Index: ui/views/controls/textfield/textfield.cc |
diff --git a/ui/views/controls/textfield/textfield.cc b/ui/views/controls/textfield/textfield.cc |
index 73cccd53caee69362e41da731ea84207ccd45fc4..03a2048f8e7f8e320ff06ef8dd71123854e2b5ee 100644 |
--- a/ui/views/controls/textfield/textfield.cc |
+++ b/ui/views/controls/textfield/textfield.cc |
@@ -284,9 +284,10 @@ Textfield::Textfield() |
SetBorder(scoped_ptr<Border>(new FocusableBorder())); |
SetFocusable(true); |
- if (ViewsDelegate::views_delegate) { |
- password_reveal_duration_ = ViewsDelegate::views_delegate-> |
- GetDefaultTextfieldObscuredRevealDuration(); |
+ if (ViewsDelegate::GetInstance()) { |
+ password_reveal_duration_ = |
+ ViewsDelegate::GetInstance() |
+ ->GetDefaultTextfieldObscuredRevealDuration(); |
} |
} |