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

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

Issue 2335203003: Add metrics to keep track of the tab activate/deactivate cycle (Closed)
Patch Set: Addressed comments 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
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 {

Powered by Google App Engine
This is Rietveld 408576698