Index: chrome/browser/extensions/api/tabs/tabs_api.cc |
diff --git a/chrome/browser/extensions/api/tabs/tabs_api.cc b/chrome/browser/extensions/api/tabs/tabs_api.cc |
index 3318a2579d779538b07d21bef9f9345b403e26b8..e9e6b82bb2f46e56ec3816a66ce015dc5a56a898 100644 |
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc |
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc |
@@ -133,12 +133,14 @@ bool GetTabById(int tab_id, |
int* tab_index, |
std::string* error_message) { |
if (ExtensionTabUtil::GetTabById(tab_id, profile, include_incognito, |
- browser, tab_strip, contents, tab_index)) |
+ browser, tab_strip, contents, tab_index)) { |
return true; |
+ } |
- if (error_message) |
+ if (error_message) { |
*error_message = ErrorUtils::FormatErrorMessage( |
keys::kTabNotFoundError, base::IntToString(tab_id)); |
+ } |
return false; |
} |