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

Unified Diff: chrome/browser/views/tabs/tab_strip.cc

Issue 1609008: Adds some debugging info in hopes of tracking leak in (Closed)
Patch Set: Removes supression Created 10 years, 8 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 | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/tabs/tab_strip.cc
diff --git a/chrome/browser/views/tabs/tab_strip.cc b/chrome/browser/views/tabs/tab_strip.cc
index 373186e870e9b1c0affc59a8f5209da4d9013de7..19de279c4b6b57a544eb9c6209882e37df979f98 100644
--- a/chrome/browser/views/tabs/tab_strip.cc
+++ b/chrome/browser/views/tabs/tab_strip.cc
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "base/compiler_specific.h"
#include "base/stl_util-inl.h"
+#include "base/string_util.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_theme_provider.h"
#include "chrome/browser/defaults.h"
@@ -1413,6 +1414,17 @@ void TabStrip::GenerateIdealBounds() {
}
void TabStrip::NewTabAnimation1Done() {
+#if defined(OS_LINUX)
+ std::string details(IntToString(GetTabCount()));
+
+ for (size_t i = 0; i < tab_data_.size(); ++i) {
+ if (tab_data_[i].tab->closing())
+ details += " " + IntToString(static_cast<int>(i));
+ }
+
+ LOG(ERROR) << " NewTabAnimation1Done details=" << details;
+#endif
+
int tab_data_index = static_cast<int>(tab_data_.size() - 1);
Tab* tab = GetTabAtTabDataIndex(tab_data_index);
@@ -1607,6 +1619,10 @@ void TabStrip::StopAnimating(bool layout) {
}
void TabStrip::ResetAnimationState(bool stop_new_tab_timer) {
+#if defined(OS_LINUX)
+ LOG(ERROR) << " ResetAnimationState stop=" << stop_new_tab_timer;
+#endif
+
if (animation_type_ == ANIMATION_NEW_TAB_2)
newtab_button_->SchedulePaint();
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698