Commit a284fe25 authored by oshima@chromium.org's avatar oshima@chromium.org

more logs for 26646

BUG=chromium-os:26646
TEST=none

Review URL: https://chromiumcodereview.appspot.com/9582019

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124725 0039d316-1c4b-4281-b951-d872f2087c98
parent af5922c5
......@@ -263,6 +263,7 @@ std::string AutomationProvider::GetProtocolVersion() {
}
void AutomationProvider::SetExpectedTabCount(size_t expected_tabs) {
VLOG(2) << "SetExpectedTabCount:" << expected_tabs;
if (expected_tabs == 0)
OnInitialTabLoadsComplete();
else
......
......@@ -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();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment