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 ffc2b9527c5877835bafd76ae06c0ea281e542a6..a5602ac1e8e43635a713db3c05f95697e1ef6357 100644 |
--- a/chrome/browser/extensions/extension_tab_util.cc |
+++ b/chrome/browser/extensions/extension_tab_util.cc |
@@ -453,12 +453,13 @@ bool ExtensionTabUtil::GetDefaultTab(Browser* browser, |
} |
bool ExtensionTabUtil::GetTabById(int tab_id, |
- Profile* profile, |
+ content::BrowserContext* browser_context, |
bool include_incognito, |
Browser** browser, |
TabStripModel** tab_strip, |
WebContents** contents, |
int* tab_index) { |
+ Profile* profile = Profile::FromBrowserContext(browser_context); |
Profile* incognito_profile = |
include_incognito && profile->HasOffTheRecordProfile() ? |
profile->GetOffTheRecordProfile() : NULL; |