diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 17:39:10 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 17:39:10 +0000 |
commit | 6f1ebb153210c5f77133b2a97596d07aabd9d675 (patch) | |
tree | 31c350b62ebf035e15e92aee56b7ced81613d0d9 /chrome/browser/extensions/extension_tabs_module.cc | |
parent | 01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f (diff) | |
download | chromium_src-6f1ebb153210c5f77133b2a97596d07aabd9d675.zip chromium_src-6f1ebb153210c5f77133b2a97596d07aabd9d675.tar.gz chromium_src-6f1ebb153210c5f77133b2a97596d07aabd9d675.tar.bz2 |
Extensions: tab.title should not be undefined.
(If you request tab information while the page is loading, the tab.title is undefined and it shouldn't be.)
Review URL: http://codereview.chromium.org/196125
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_tabs_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_tabs_module.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_tabs_module.cc b/chrome/browser/extensions/extension_tabs_module.cc index 12028c2..2d3e70c 100644 --- a/chrome/browser/extensions/extension_tabs_module.cc +++ b/chrome/browser/extensions/extension_tabs_module.cc @@ -115,10 +115,9 @@ DictionaryValue* ExtensionTabUtil::CreateTabValue( result->SetString(keys::kStatusKey, GetTabStatusText(status)); result->SetBoolean(keys::kSelectedKey, tab_strip && tab_index == tab_strip->selected_index()); + result->SetString(keys::kTitleKey, UTF16ToWide(contents->GetTitle())); if (status != TAB_LOADING) { - result->SetString(keys::kTitleKey, UTF16ToWide(contents->GetTitle())); - NavigationEntry* entry = contents->controller().GetActiveEntry(); if (entry) { if (entry->favicon().is_valid()) |