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

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: fix ifdef 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
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..28d04d2f9474a616c9d38bd056a0f78cef5ad7c0 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_CHROMEOS)
+ 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();
}
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698