Provide and use a simpler version of ExtensionTabUtil::GetTabById.

14 out of 24 usages of ExtensionTabUtil::GetTabById didn't require
|browser|, |tab_strip| and |tab_index| and specified nullptr for
them. Provide a simpler version without these params and update
callers to use the simplified version.


Bug: None
Test: No visible changes expected, internal only cleanup.
Change-Id: I3cbdeee148c335b49c058b9498be097f43043c8b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1717458
Reviewed-by: Devlin <[email protected]>
Commit-Queue: Istiaque Ahmed <[email protected]>
Cr-Commit-Position: refs/heads/master@{#681201}
diff --git a/chrome/browser/extensions/extension_tab_util.h b/chrome/browser/extensions/extension_tab_util.h
index 8d51f78..f255bc7c 100644
--- a/chrome/browser/extensions/extension_tab_util.h
+++ b/chrome/browser/extensions/extension_tab_util.h
@@ -160,6 +160,10 @@
                          TabStripModel** tab_strip,
                          content::WebContents** contents,
                          int* tab_index);
+  static bool GetTabById(int tab_id,
+                         content::BrowserContext* browser_context,
+                         bool include_incognito,
+                         content::WebContents** contents);
 
   // Takes |url_string| and returns a GURL which is either valid and absolute
   // or invalid. If |url_string| is not directly interpretable as a valid (it is