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

Unified Diff: src/cpu-profiler.cc

Issue 1630027: Really fix WebKit buildbot crashes on StopProfiling. (Closed)
Patch Set: Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cpu-profiler.cc
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc
index d1230340e694c374a78642a489bb0216769e4238..234114908cedb3cdb7698365e7fcac070fa3b64e 100644
--- a/src/cpu-profiler.cc
+++ b/src/cpu-profiler.cc
@@ -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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698