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

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

Issue 2354673004: Add TabStripModel as a parameter of some functions in TabStripModelObserver (Closed)
Patch Set: Last nits Created 4 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
« no previous file with comments | « chrome/browser/ui/fast_unload_controller.cc ('k') | chrome/browser/ui/tabs/tab_strip_model_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7cf6ebd4b2e510b35b7210afb53f3871631b7ac3..6d6262c1e9bd7407278682f4276a593730ebd244 100644
--- a/chrome/browser/ui/tabs/tab_strip_model.cc
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc
@@ -320,7 +320,7 @@ void TabStripModel::InsertWebContentsAt(int index,
selection_model_.IncrementFrom(index);
FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
- TabInsertedAt(contents, index, active));
+ TabInsertedAt(this, contents, index, active));
if (active) {
ui::ListSelectionModel new_model;
new_model.Copy(selection_model_);
@@ -658,8 +658,8 @@ void TabStripModel::SetTabPinned(int index, bool pinned) {
}
FOR_EACH_OBSERVER(TabStripModelObserver, observers_,
- TabPinnedStateChanged(contents_data_[index]->web_contents(),
- index));
+ TabPinnedStateChanged(
+ this, contents_data_[index]->web_contents(), index));
}
bool TabStripModel::IsTabPinned(int index) const {
« no previous file with comments | « chrome/browser/ui/fast_unload_controller.cc ('k') | chrome/browser/ui/tabs/tab_strip_model_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698