Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Tab discarding/Tab strip #173

Merged
merged 9 commits into from
Apr 1, 2017
Merged

Tab discarding/Tab strip #173

merged 9 commits into from
Apr 1, 2017

Conversation

bridiver
Copy link
Collaborator

add tab discard support through chromium tab manager
also adds browser/tabstrip support for better src/chrome code compatibility
dep for brave/browser-laptop#2388

@bridiver
Copy link
Collaborator Author

tab discarding works by creating a new empty webcontents and copying the navigation controller state from the current tab. It then detaches the old webcontents from the webview and attaches the new one. When the tab is activated it triggers a reload

@darkdh darkdh requested review from bbondy and darkdh March 31, 2017 16:16
@@ -208,6 +209,8 @@ void CommonWebContentsDelegate::SetOwnerWindow(
int32_t id =
api::Window::TrackableObject::GetIDFromWrappedClass(owner_window);
if (id > 0) {
SessionID sessionID;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is sessionID not being used? TabHelper::SetWindowId will eventually set SessionID and use it so I think we can remove it here.

@bridiver
Copy link
Collaborator Author

bridiver commented Mar 31, 2017 via email

@darkdh
Copy link
Member

darkdh commented Mar 31, 2017

no I mean it should be used like SessionTabHelper::FromWebContents(web_contents())->SetWindowID(session); because set_id only store id in its private attribute

@bridiver
Copy link
Collaborator Author

bridiver commented Mar 31, 2017 via email

"//chrome/browser/engagement/site_engagement_score.cc",
"//chrome/browser/engagement/site_engagement_score.h",
"chrome/browser/engagement/site_engagement_service.cc",
"chrome/browser/lifetime/application_lifetime.cc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this file

@bbondy
Copy link
Member

bbondy commented Apr 1, 2017

++

@bbondy bbondy merged commit 3289373 into master Apr 1, 2017
@bsclifton bsclifton deleted the tab-strip branch June 18, 2018 18:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants