diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 23:54:39 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-03 23:54:39 +0000 |
commit | d19e63d5bd3a61fc46bae0c527731c79abb94957 (patch) | |
tree | deb7a54087fb357f244cea7bf72b801f44356ec2 | |
parent | 2727c73679b340aaf11c41ed4e57ada626f9c5a5 (diff) | |
download | chromium_src-d19e63d5bd3a61fc46bae0c527731c79abb94957.zip chromium_src-d19e63d5bd3a61fc46bae0c527731c79abb94957.tar.gz chromium_src-d19e63d5bd3a61fc46bae0c527731c79abb94957.tar.bz2 |
ui_tests: use the correct tab title
To get the title actually shown by a tab, call the function that
we use for computing the tab text. (Sometimes it returns title()
and sometimes it computes something more complex.)
Review URL: http://codereview.chromium.org/6612031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76841 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/ui_test_utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc index 7a57379..c66f12c 100644 --- a/chrome/test/ui_test_utils.cc +++ b/chrome/test/ui_test_utils.cc @@ -384,7 +384,7 @@ bool GetCurrentTabTitle(const Browser* browser, string16* title) { NavigationEntry* last_entry = tab_contents->controller().GetActiveEntry(); if (!last_entry) return false; - title->assign(last_entry->title()); + title->assign(last_entry->GetTitleForDisplay("")); return true; } |