summaryrefslogtreecommitdiffstats
path: root/chrome/common/temp_scaffolding_stubs.cc
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 17:24:24 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-01 17:24:24 +0000
commit6b5a32b508a41b4b1e19d7ec1815ce4f6b2e1699 (patch)
tree31e87b8a5f71466166c8ef38293dbba78a4b5706 /chrome/common/temp_scaffolding_stubs.cc
parent0af622df2ffd04765fd3fc11625043fb72b03e4a (diff)
downloadchromium_src-6b5a32b508a41b4b1e19d7ec1815ce4f6b2e1699.zip
chromium_src-6b5a32b508a41b4b1e19d7ec1815ce4f6b2e1699.tar.gz
chromium_src-6b5a32b508a41b4b1e19d7ec1815ce4f6b2e1699.tar.bz2
[Mac] Don't call MemoryDetails::Release() from AboutMemoryHandler's constructor.
Review URL: http://codereview.chromium.org/252008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27731 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/temp_scaffolding_stubs.cc')
-rw-r--r--chrome/common/temp_scaffolding_stubs.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc
index f875e40..c36525b 100644
--- a/chrome/common/temp_scaffolding_stubs.cc
+++ b/chrome/common/temp_scaffolding_stubs.cc
@@ -175,12 +175,12 @@ MemoryDetails::MemoryDetails() {
void MemoryDetails::StartFetch() {
NOTIMPLEMENTED();
- OnDetailsAvailable();
- // When we get the real implementation this can be removed. The Release that
- // ends up deleting this object is done as the result of the PostTask in
- // CollectProcessData.
- Release();
+ // Other implementations implicitly own the object by passing it to
+ // IO and UI tasks. This code is called from AboutMemoryHandler's
+ // constructor, so there is no reference to Release(), yet.
+ MessageLoop::current()->PostTask(
+ FROM_HERE, NewRunnableMethod(this, &MemoryDetails::OnDetailsAvailable));
}
#endif
@@ -269,4 +269,3 @@ void BookmarkEditor::Show(gfx::NativeView parent_window,
}
#endif
-