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

Unified Diff: chrome/browser/ui/tabs/tab_strip_model.cc

Issue 2630583002: Add setting to isolate zoom changes by default. (Closed)
Patch Set: Add more tests. Created 3 years, 11 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/ui/tabs/tab_strip_model.cc
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc
index 737b80928761843e6208a44f179f180653d14358..d7a2ee8337084671d3df661575fb9308af049927 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -342,6 +342,8 @@ WebContents* TabStripModel::ReplaceWebContentsAt(int index,
contents_data_[index]->SetWebContents(new_contents);
+ old_contents->OnReplaced(new_contents);
wjmaclean 2017/01/19 21:09:05 Can we perhaps re-name this to something like Clon
Kevin McNee 2017/01/25 23:42:56 Done. The zoom controller is now notified directl
+
for (auto& observer : observers_)
observer.TabReplacedAt(this, old_contents, new_contents, index);

Powered by Google App Engine
This is Rietveld 408576698