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

Unified Diff: chrome/browser/ui/webui/profiler_ui.cc

Issue 980333004: Removing unused Births methods and unnecessary link from chrome://profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reset_max
Patch Set: Created 5 years, 10 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 | « chrome/browser/resources/profiler/profiler.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/profiler_ui.cc
diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc
index e822080fc3e3d06df08a92b0e7b40e7facc15cb1..a8067f96cff5cafacb1d61966e6bc757a308220f 100644
--- a/chrome/browser/ui/webui/profiler_ui.cc
+++ b/chrome/browser/ui/webui/profiler_ui.cc
@@ -121,7 +121,6 @@ class ProfilerMessageHandler : public WebUIMessageHandler {
// Messages.
void OnGetData(const base::ListValue* list);
- void OnResetData(const base::ListValue* list);
private:
DISALLOW_COPY_AND_ASSIGN(ProfilerMessageHandler);
@@ -132,9 +131,6 @@ void ProfilerMessageHandler::RegisterMessages() {
web_ui()->RegisterMessageCallback("getData",
base::Bind(&ProfilerMessageHandler::OnGetData, base::Unretained(this)));
- web_ui()->RegisterMessageCallback("resetData",
- base::Bind(&ProfilerMessageHandler::OnResetData,
- base::Unretained(this)));
}
void ProfilerMessageHandler::OnGetData(const base::ListValue* list) {
@@ -142,10 +138,6 @@ void ProfilerMessageHandler::OnGetData(const base::ListValue* list) {
profiler_ui->GetData();
}
-void ProfilerMessageHandler::OnResetData(const base::ListValue* list) {
- tracked_objects::ThreadData::ResetAllThreadData();
-}
-
} // namespace
ProfilerUI::ProfilerUI(content::WebUI* web_ui)
« no previous file with comments | « chrome/browser/resources/profiler/profiler.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698