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

Unified Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 2107603002: Makes the pinned tab title change indicator hide correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 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/views/tabs/tab.cc
diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
index 3da5cd70530f9c9ca0cef8c232b9ef73d776a9ed..7c1262c79c8fd33eaaa2971c442fc08f7c5c0ad9 100644
--- a/chrome/browser/ui/views/tabs/tab.cc
+++ b/chrome/browser/ui/views/tabs/tab.cc
@@ -571,6 +571,10 @@ bool Tab::IsActive() const {
}
void Tab::ActiveStateChanged() {
+ // The pinned tab title changed indicator is only shown for inactive tabs.
+ // When transitioning between active and inactive always reset the state
+ // to enforce that.
+ SetPinnedTabTitleChangedIndicatorVisible(false);
OnButtonColorMaybeChanged();
alert_indicator_button_->UpdateEnabledForMuteToggle();
Layout();
« no previous file with comments | « chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h ('k') | chrome/browser/ui/views/tabs/tab_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698