Really fix WebKit buildbot crashes on StopProfiling.

This time I hope I'm doing the right check.

TBR=ager@chromium.org

Review URL: http://codereview.chromium.org/1630027

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4439 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 98b8a062
......@@ -253,12 +253,12 @@ void CpuProfiler::StartProfiling(String* title) {
CpuProfile* CpuProfiler::StopProfiling(const char* title) {
return singleton_ != NULL ? singleton_->StopCollectingProfile(title) : NULL;
return is_profiling() ? singleton_->StopCollectingProfile(title) : NULL;
}
CpuProfile* CpuProfiler::StopProfiling(String* title) {
return singleton_ != NULL ? singleton_->StopCollectingProfile(title) : NULL;
return is_profiling() ? singleton_->StopCollectingProfile(title) : NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment