Index: chrome/browser/extensions/extension_tab_util.cc |
diff --git a/chrome/browser/extensions/extension_tab_util.cc b/chrome/browser/extensions/extension_tab_util.cc |
index 706f41e009130deadd8baeca5763a635f234adb9..f1783f72ecba294145bea60075ecb628e8dd1d18 100644 |
--- a/chrome/browser/extensions/extension_tab_util.cc |
+++ b/chrome/browser/extensions/extension_tab_util.cc |
@@ -143,7 +143,8 @@ base::DictionaryValue* ExtensionTabUtil::OpenTab( |
browser->host_desktop_type()); |
if (!browser || !browser->window()) { |
- // TODO(rpaquay): Error message? |
+ if (error) |
+ *error = keys::kNoCurrentWindowError; |
return NULL; |
} |
@@ -160,7 +161,10 @@ base::DictionaryValue* ExtensionTabUtil::OpenTab( |
NULL, |
&opener, |
NULL)) { |
- // TODO(rpaquay): Error message? |
+ if (error) { |
+ *error = ErrorUtils::FormatErrorMessage(keys::kTabNotFoundError, |
+ base::IntToString(opener_id)); |
+ } |
return NULL; |
} |
} |