From bfa5cf8199e3b86cf15864b2390cd10ad893c212 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Fri, 20 Nov 2009 21:48:02 +0000 Subject: Fix DCHECK() failure when about:memory used. BUG=28358 TEST=On a debug build (on any platform), go to about:memory and make sure it doesn't fail a DCHECK(). Review URL: http://codereview.chromium.org/418022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32677 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/memory_details.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'chrome/browser/memory_details.h') diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h index bfee58e..21af097 100644 --- a/chrome/browser/memory_details.h +++ b/chrome/browser/memory_details.h @@ -64,14 +64,21 @@ class ProcessInfoSnapshot; // // class MyMemoryDetailConsumer : public MemoryDetails { // -// MyMemoryDetailConsumer() : MemoryDetails(true) { +// MyMemoryDetailConsumer() { +// // Anything but |StartFetch()|. +// } +// +// // (Or just call |StartFetch()| explicitly if there's nothing else to +// // do.) +// void StartDoingStuff() { // StartFetch(); // Starts fetching details. +// // Etc. // } // -// // Your class stuff here +// // Your other class stuff here // // virtual void OnDetailsAvailable() { -// // do work with memory info here +// // do work with memory info here // } // } class MemoryDetails : public base::RefCountedThreadSafe { -- cgit v1.1