summaryrefslogtreecommitdiffstats
path: root/chrome/browser/memory_details.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 21:48:02 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-20 21:48:02 +0000
commitbfa5cf8199e3b86cf15864b2390cd10ad893c212 (patch)
treecd40647800e1fe860250147658f14de7c4dba04d /chrome/browser/memory_details.h
parent5d383ab616e2e5ed67db60052ba95ebfeb2067ca (diff)
downloadchromium_src-bfa5cf8199e3b86cf15864b2390cd10ad893c212.zip
chromium_src-bfa5cf8199e3b86cf15864b2390cd10ad893c212.tar.gz
chromium_src-bfa5cf8199e3b86cf15864b2390cd10ad893c212.tar.bz2
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
Diffstat (limited to 'chrome/browser/memory_details.h')
-rw-r--r--chrome/browser/memory_details.h13
1 files changed, 10 insertions, 3 deletions
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<MemoryDetails> {