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

Unified Diff: chrome/browser/automation/automation_provider_observers.cc

Issue 9582019: more logs for 26646 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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/automation/automation_provider_observers.cc
diff --git a/chrome/browser/automation/automation_provider_observers.cc b/chrome/browser/automation/automation_provider_observers.cc
index 94910615cd1393c4669b1015d98c58650891e50a..ae4b6fb20b2fb75eb5f8f715d1bb2fa4e627630a 100644
--- a/chrome/browser/automation/automation_provider_observers.cc
+++ b/chrome/browser/automation/automation_provider_observers.cc
@@ -118,6 +118,10 @@ InitialLoadObserver::InitialLoadObserver(size_t tab_count,
crashed_tab_count_(0),
outstanding_tab_count_(tab_count),
init_time_(base::TimeTicks::Now()) {
+#if defined(OS_CHROMELOS)
Jorge Lucangeli Obes 2012/03/02 19:15:57 OS_CHROMELOS->OS_CHROMEOS
oshima 2012/03/02 19:21:49 Doh! Thank you for catch. Fixed.
+ LOG(ERROR) << "InitialLoadObserver::Observe type=" << tab_count;
+#endif
+
if (outstanding_tab_count_ > 0) {
registrar_.Add(this, content::NOTIFICATION_LOAD_START,
content::NotificationService::AllSources());
@@ -134,6 +138,10 @@ InitialLoadObserver::~InitialLoadObserver() {
void InitialLoadObserver::Observe(int type,
const content::NotificationSource& source,
const content::NotificationDetails& details) {
+#if defined(OS_CHROMEOS)
+ LOG(ERROR) << "InitialLoadObserver::Observe type=" << type;
+#endif
+
if (type == content::NOTIFICATION_LOAD_START) {
if (outstanding_tab_count_ > loading_tabs_.size())
loading_tabs_.insert(TabTimeMap::value_type(
@@ -176,6 +184,13 @@ void InitialLoadObserver::Observe(int type,
NOTREACHED();
}
+#if defined(OS_CHROMEOS)
+ LOG(ERROR) << "InitialLoadObserver::Observe type=" << type
+ << ", finished=" << finished_tabs_.size()
+ << ", crashed=" << crashed_tab_count_
+ << ", outstanding=" << outstanding_tab_count_;
+#endif
+
if (finished_tabs_.size() + crashed_tab_count_ >= outstanding_tab_count_)
ConditionMet();
}

Powered by Google App Engine
This is Rietveld 408576698