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

Unified Diff: chrome/browser/extensions/api/tabs/tabs_api.cc

Issue 1685003002: Plumb the correct owner document through DocumentInit::m_owner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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/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 de58f03aa8f655d6e02ce3125a451d4fc13f546d..170def8b1e1d5874160c9bd07f0251e03e5e76da 100644
--- a/chrome/browser/extensions/api/tabs/tabs_api.cc
+++ b/chrome/browser/extensions/api/tabs/tabs_api.cc
@@ -593,7 +593,8 @@ bool WindowsCreateFunction::RunSync() {
AppWindow* app_window = new AppWindow(
window_profile, new ChromeAppDelegate(true), extension());
AshPanelContents* ash_panel_contents = new AshPanelContents(app_window);
- app_window->Init(urls[0], ash_panel_contents, create_params);
+ app_window->Init(urls[0], ash_panel_contents, render_frame_host(),
+ create_params);
WindowController* window_controller =
WindowControllerList::GetInstance()->FindWindowById(
app_window->session_id().id());

Powered by Google App Engine
This is Rietveld 408576698