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

Side by Side Diff: content/shell/browser/webkit_test_controller.cc

Issue 142043010: Modify the format output when a DOM-object leak is detected (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/shell/common/leak_detection_result.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/webkit_test_controller.h" 5 #include "content/shell/browser/webkit_test_controller.h"
6 6
7 #include <iostream> 7 #include <iostream>
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 } 670 }
671 671
672 void WebKitTestController::OnLeakDetectionDone( 672 void WebKitTestController::OnLeakDetectionDone(
673 const LeakDetectionResult& result) { 673 const LeakDetectionResult& result) {
674 if (!result.leaked) { 674 if (!result.leaked) {
675 base::MessageLoop::current()->PostTask(FROM_HERE, 675 base::MessageLoop::current()->PostTask(FROM_HERE,
676 base::MessageLoop::QuitClosure()); 676 base::MessageLoop::QuitClosure());
677 return; 677 return;
678 } 678 }
679 679
680 printer_->AddErrorMessage("#LEAK");
681 printer_->AddErrorMessage( 680 printer_->AddErrorMessage(
682 base::StringPrintf(" Number of live documents: %d", 681 base::StringPrintf("#LEAK - renderer pid %d (%s)", current_pid_,
683 result.number_of_live_documents)); 682 result.detail.c_str()));
684 printer_->AddErrorMessage(
685 base::StringPrintf(" Number of live nodes: %d",
686 result.number_of_live_nodes));
687 DiscardMainWindow(); 683 DiscardMainWindow();
688 } 684 }
689 685
690 } // namespace content 686 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/shell/common/leak_detection_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698