File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1212#include " base/logging.h"
1313#include " base/string_util.h"
1414#include " base/utf_string_conversions.h"
15-
15+ # include < iostream >
1616namespace {
1717
1818// Make a deep copy of |node|, but don't include empty lists or dictionaries
@@ -354,6 +354,7 @@ DictionaryValue::DictionaryValue()
354354}
355355
356356DictionaryValue::~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
379380void 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
Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ const ListValue* InMemoryLog::entries_list() const {
277277
278278void 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
You can’t perform that action at this time.
0 commit comments