Index: chrome/browser/extensions/extension_function.cc |
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc |
index f42910a795542a72229d4421d13608e5f5c0a4da..951e0972470bb2d2c418fe6334e739543028f7c8 100644 |
--- a/chrome/browser/extensions/extension_function.cc |
+++ b/chrome/browser/extensions/extension_function.cc |
@@ -219,12 +219,7 @@ UIThreadExtensionFunction::GetExtensionWindowController() { |
if (window_controller) |
return window_controller; |
- Profile* profile = Profile::FromBrowserContext( |
- render_view_host_->GetProcess()->GetBrowserContext()); |
- ExtensionWindowList::ProfileMatchType match_type = include_incognito_ |
- ? ExtensionWindowController::MATCH_INCOGNITO |
- : ExtensionWindowController::MATCH_NORMAL_ONLY; |
- return ExtensionWindowList::GetInstance()->CurrentWindow(profile, match_type); |
+ return ExtensionWindowList::GetInstance()->CurrentWindow(this); |
} |
void UIThreadExtensionFunction::SendResponse(bool success) { |