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

Unified Diff: Source/core/inspector/InspectorProfilerAgent.cpp

Issue 106353002: Nuke Profiler.setRecordingProfile protocol message (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 | « Source/core/inspector/InspectorProfilerAgent.h ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorProfilerAgent.cpp
diff --git a/Source/core/inspector/InspectorProfilerAgent.cpp b/Source/core/inspector/InspectorProfilerAgent.cpp
index 6e44772db8a949018f15b0400f0381db812ffbfb..76966aedb8118676b52f5290ca2470777afd392e 100644
--- a/Source/core/inspector/InspectorProfilerAgent.cpp
+++ b/Source/core/inspector/InspectorProfilerAgent.cpp
@@ -230,7 +230,6 @@ void InspectorProfilerAgent::start(ErrorString*)
m_overlay->startedRecordingProfile();
String title = getCurrentUserInitiatedProfileName(true);
ScriptProfiler::start(title);
- toggleRecordButton(true);
m_state->setBoolean(ProfilerAgentState::userInitiatedProfiling, true);
}
@@ -257,17 +256,10 @@ PassRefPtr<TypeBuilder::Profiler::ProfileHeader> InspectorProfilerAgent::stop(Er
profileHeader = createProfileHeader(*profile);
} else if (errorString)
*errorString = "Profile wasn't found";
- toggleRecordButton(false);
m_state->setBoolean(ProfilerAgentState::userInitiatedProfiling, false);
return profileHeader;
}
-void InspectorProfilerAgent::toggleRecordButton(bool isProfiling)
-{
- if (m_frontend)
- m_frontend->setRecordingProfile(isProfiling);
-}
-
void InspectorProfilerAgent::idleFinished()
{
if (!m_profileNameIdleTimeMap || !m_profileNameIdleTimeMap->size())
« no previous file with comments | « Source/core/inspector/InspectorProfilerAgent.h ('k') | Source/devtools/front_end/CPUProfileView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698