| Index: content/browser/devtools/protocol/page_handler.cc
|
| diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc
|
| index e1f72108baba64e55e48595971da9806aaa7e4ce..e8d168489dab634a106be429e5e3e261880a65a5 100644
|
| --- a/content/browser/devtools/protocol/page_handler.cc
|
| +++ b/content/browser/devtools/protocol/page_handler.cc
|
| @@ -640,6 +640,14 @@ void PageHandler::OnColorPicked(int r, int g, int b, int a) {
|
| client_->ColorPicked(ColorPickedParams::Create()->set_color(color));
|
| }
|
|
|
| +Response PageHandler::StopLoading() {
|
| + WebContentsImpl* web_contents = GetWebContents();
|
| + if (!web_contents)
|
| + return Response::InternalError("Could not connect to view");
|
| + web_contents->Stop();
|
| + return Response::OK();
|
| +}
|
| +
|
| } // namespace page
|
| } // namespace devtools
|
| } // namespace content
|
|
|