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

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

Issue 1653113002: Fix favicon disappearing on pinned tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting comments Created 4 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/views/tabs/fake_base_tab_strip_controller.cc
diff --git a/chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc b/chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc
index 5054a372df1d1b389e39447971847afb1fdfad78..b37d5c29db1bc60959aaab072fd10e5a24776a19 100644
--- a/chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc
+++ b/chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.cc
@@ -23,6 +23,15 @@ void FakeBaseTabStripController::AddTab(int index, bool is_active) {
active_index_ = index;
}
+void FakeBaseTabStripController::AddPinnedTab(int index, bool is_active) {
+ TabRendererData data;
+ data.pinned = true;
+ num_tabs_++;
+ tab_strip_->AddTabAt(index, data, is_active);
+ if (is_active)
+ active_index_ = index;
+}
+
void FakeBaseTabStripController::RemoveTab(int index) {
num_tabs_--;
tab_strip_->RemoveTabAt(index);
« no previous file with comments | « chrome/browser/ui/views/tabs/fake_base_tab_strip_controller.h ('k') | chrome/browser/ui/views/tabs/media_indicator_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698