From c306b792dac1eae22de63374028624b0025c216c Mon Sep 17 00:00:00 2001 From: "msw@chromium.org" Date: Mon, 16 Jun 2014 19:51:53 +0000 Subject: Initialize views tab titles to 'Untitled'. Fixes blank tab titles when Tab::SetData is never called. BUG=384317 TEST=Drag NTP Google doodle onto tab strip, tab is "Untitled". R=sky@chromium.org Review URL: https://codereview.chromium.org/330203005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277523 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/views/tabs/tab.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc index ab82c03..2e95c79 100644 --- a/chrome/browser/ui/views/tabs/tab.cc +++ b/chrome/browser/ui/views/tabs/tab.cc @@ -400,6 +400,7 @@ Tab::Tab(TabController* controller) title_->SetHorizontalAlignment(gfx::ALIGN_TO_HEAD); title_->SetElideBehavior(gfx::FADE_TAIL); title_->SetAutoColorReadabilityEnabled(false); + title_->SetText(CoreTabHelper::GetDefaultTitle()); AddChildView(title_); // Add the Close Button. -- cgit v1.1