Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: chrome/browser/extensions/extension_function.cc

Issue 10407035: Extension/Platform App window isolation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698