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

Unified Diff: android_webview/native/aw_dev_tools_server.cc

Issue 691863002: [DevTools] Remove DevToolsHttpHandler::Stop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@httpHandler
Patch Set: Removed comment Created 6 years, 1 month 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 | « android_webview/native/aw_dev_tools_server.h ('k') | chrome/browser/android/dev_tools_server.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_dev_tools_server.cc
diff --git a/android_webview/native/aw_dev_tools_server.cc b/android_webview/native/aw_dev_tools_server.cc
index 4d5808b60774bd254a8f90038956c8e8156da255..3509b9f310b6ac0f89ace77782b63bf88d81c36b 100644
--- a/android_webview/native/aw_dev_tools_server.cc
+++ b/android_webview/native/aw_dev_tools_server.cc
@@ -92,8 +92,7 @@ class UnixDomainServerSocketFactory
namespace android_webview {
-AwDevToolsServer::AwDevToolsServer()
- : protocol_handler_(NULL) {
+AwDevToolsServer::AwDevToolsServer() {
}
AwDevToolsServer::~AwDevToolsServer() {
@@ -107,20 +106,15 @@ void AwDevToolsServer::Start() {
scoped_ptr<content::DevToolsHttpHandler::ServerSocketFactory> factory(
new UnixDomainServerSocketFactory(
base::StringPrintf(kSocketNameFormat, getpid())));
- protocol_handler_ = content::DevToolsHttpHandler::Start(
+ protocol_handler_.reset(content::DevToolsHttpHandler::Start(
factory.Pass(),
base::StringPrintf(kFrontEndURL, content::GetWebKitRevision().c_str()),
new AwDevToolsServerDelegate(),
- base::FilePath());
+ base::FilePath()));
}
void AwDevToolsServer::Stop() {
- if (!protocol_handler_)
- return;
- // Note that the call to Stop() below takes care of |protocol_handler_|
- // deletion.
- protocol_handler_->Stop();
- protocol_handler_ = NULL;
+ protocol_handler_.reset();
}
bool AwDevToolsServer::IsStarted() const {
« no previous file with comments | « android_webview/native/aw_dev_tools_server.h ('k') | chrome/browser/android/dev_tools_server.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698