Skip to content

Commit b74af33

Browse files
committed
added temp debugging logs
1 parent 26268e6 commit b74af33

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/base/values.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "base/logging.h"
1313
#include "base/string_util.h"
1414
#include "base/utf_string_conversions.h"
15-
15+
#include <iostream>
1616
namespace {
1717

1818
// Make a deep copy of |node|, but don't include empty lists or dictionaries
@@ -354,6 +354,7 @@ DictionaryValue::DictionaryValue()
354354
}
355355

356356
DictionaryValue::~DictionaryValue() {
357+
std::cout<< "\n********** DictionaryValue::~DictionaryValue()\n";
357358
Clear();
358359
}
359360

@@ -377,12 +378,15 @@ bool DictionaryValue::HasKey(const std::string& key) const {
377378
}
378379

379380
void DictionaryValue::Clear() {
381+
std::cout << "*********** DictionaryValue::Clear()\n";
380382
ValueMap::iterator dict_iterator = dictionary_.begin();
381383
while (dict_iterator != dictionary_.end()) {
384+
std::cout<<"******** "<<dict_iterator->first <<" = "<< dict_iterator->second<<std::endl;
382385
delete dict_iterator->second;
383386
++dict_iterator;
384387
}
385388

389+
std::cout << "*********** finish: DictionaryValue::Clear()\n\n";
386390
dictionary_.clear();
387391
}
388392

src/webdriver/webdriver_logging.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ const ListValue* InMemoryLog::entries_list() const {
277277

278278
void InMemoryLog::clear_entries_list() {
279279
base::AutoLock auto_lock(entries_lock_);
280+
std::cout<<"********** InMemoryLog::clear_entries_list()\n";
280281
entries_list_.Clear();
281282
}
282283

0 commit comments

Comments
 (0)