summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_tabs_module.cc
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 17:39:10 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-18 17:39:10 +0000
commit6f1ebb153210c5f77133b2a97596d07aabd9d675 (patch)
tree31c350b62ebf035e15e92aee56b7ced81613d0d9 /chrome/browser/extensions/extension_tabs_module.cc
parent01d8849d2f2abe4d9c4d0931af76ee40b8d20e7f (diff)
downloadchromium_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.cc3
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())