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

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

Issue 1321713005: Abstract WebContents/NavigationController from core TabRestore code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Created 5 years, 3 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/ash_panel_contents.cc
diff --git a/chrome/browser/extensions/api/tabs/ash_panel_contents.cc b/chrome/browser/extensions/api/tabs/ash_panel_contents.cc
index ac891e49e9d7eee87f9dbe7becac729d224fac7a..bf2f772ce9af2b14b3622c63e2913210ccc2a4af 100644
--- a/chrome/browser/extensions/api/tabs/ash_panel_contents.cc
+++ b/chrome/browser/extensions/api/tabs/ash_panel_contents.cc
@@ -13,6 +13,7 @@
#include "chrome/browser/extensions/window_controller_list.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_tab_helper.h"
+#include "components/sessions/content/content_open_tab.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
@@ -47,6 +48,8 @@ void AshPanelContents::Initialize(content::BrowserContext* context,
SessionTabHelper::FromWebContents(web_contents_.get())->SetWindowID(
host_->session_id());
+ sessions::ContentOpenTab::CreateForWebContents(web_contents_.get());
+
// Responsible for loading favicons for the Launcher, which uses different
// logic than the FaviconDriver associated with web_contents_ (instantiated in
// AppWindow::Init())

Powered by Google App Engine
This is Rietveld 408576698