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

Unified Diff: ios/chrome/browser/tabs/tab_model.mm

Issue 2678823002: Invokes TabParentingGlobalObserver for every Tab parented. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/tabs/tab_model.mm
diff --git a/ios/chrome/browser/tabs/tab_model.mm b/ios/chrome/browser/tabs/tab_model.mm
index 0d324f991f1d252ad29533c3c68245fc6b023216..7cd840e0bdb9fe53d10612713e34ab5aa7445420 100644
--- a/ios/chrome/browser/tabs/tab_model.mm
+++ b/ios/chrome/browser/tabs/tab_model.mm
@@ -581,6 +581,7 @@ void CleanCertificatePolicyCache(
[tab fetchFavicon];
[_tabs insertObject:tab atIndex:index];
+ TabParentingGlobalObserver::GetInstance()->OnTabParented(tab.webState);
[_observers tabModel:self didInsertTab:tab atIndex:index inForeground:NO];
[_observers tabModelDidChangeTabCount:self];
@@ -620,6 +621,7 @@ void CleanCertificatePolicyCache(
[_tabs replaceObjectAtIndex:index withObject:newTab];
[newTab setParentTabModel:self];
+ TabParentingGlobalObserver::GetInstance()->OnTabParented(newTab.webState);
[_observers tabModel:self didReplaceTab:oldTab withTab:newTab atIndex:index];
if (self.currentTab == oldTab)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698