| Index: content/renderer/dom_automation_controller.cc
|
| diff --git a/content/renderer/dom_automation_controller.cc b/content/renderer/dom_automation_controller.cc
|
| index 1718d646026c2a16369d1007b64a448508dacf4e..27120c134e9714c3b3fadde2bc66a56d0cfd6630 100644
|
| --- a/content/renderer/dom_automation_controller.cc
|
| +++ b/content/renderer/dom_automation_controller.cc
|
| @@ -31,12 +31,6 @@ DomAutomationController::DomAutomationController()
|
| base::Unretained(this)));
|
| BindCallback("sendWithId", base::Bind(&DomAutomationController::SendWithId,
|
| base::Unretained(this)));
|
| - BindCallback("getHistogram",
|
| - base::Bind(&DomAutomationController::GetHistogram,
|
| - base::Unretained(this)));
|
| - BindCallback("getBrowserHistogram",
|
| - base::Bind(&DomAutomationController::GetBrowserHistogram,
|
| - base::Unretained(this)));
|
| }
|
|
|
| void DomAutomationController::Send(const CppArgumentList& args,
|
| @@ -177,40 +171,4 @@ void DomAutomationController::SetAutomationId(
|
| result->Set(true);
|
| }
|
|
|
| -void DomAutomationController::GetHistogram(const CppArgumentList& args,
|
| - CppVariant* result) {
|
| - if (args.size() != 1) {
|
| - result->SetNull();
|
| - return;
|
| - }
|
| - base::HistogramBase* histogram =
|
| - base::StatisticsRecorder::FindHistogram(args[0].ToString());
|
| - std::string output;
|
| - if (!histogram) {
|
| - output = "{}";
|
| - } else {
|
| - histogram->WriteJSON(&output);
|
| - }
|
| - result->Set(output);
|
| -}
|
| -
|
| -void DomAutomationController::GetBrowserHistogram(const CppArgumentList& args,
|
| - CppVariant* result) {
|
| - if (args.size() != 1) {
|
| - result->SetNull();
|
| - return;
|
| - }
|
| -
|
| - if (!sender_) {
|
| - NOTREACHED();
|
| - result->SetNull();
|
| - return;
|
| - }
|
| -
|
| - std::string histogram_json;
|
| - sender_->Send(new ChildProcessHostMsg_GetBrowserHistogram(
|
| - args[0].ToString(), &histogram_json));
|
| - result->Set(histogram_json);
|
| -}
|
| -
|
| } // namespace content
|
|
|