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

Unified Diff: sky/tools/debugger/debugger.cc

Issue 921633006: Drop weak_ptr_factory in SkyDebugger. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/tools/debugger/debugger.cc
diff --git a/sky/tools/debugger/debugger.cc b/sky/tools/debugger/debugger.cc
index 4056b500950cef013257653c80916dee4b32ce2e..5089acf6b48541a8a9d1b73248e50164e9f68347 100644
--- a/sky/tools/debugger/debugger.cc
+++ b/sky/tools/debugger/debugger.cc
@@ -6,7 +6,6 @@
#include "base/bind.h"
#include "base/debug/profiler.h"
-#include "base/memory/weak_ptr.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/stringprintf.h"
#include "mojo/application/application_runner_chromium.h"
@@ -31,7 +30,7 @@ const size_t kMinSendBufferSize = 1024 * 1024;
class SkyDebugger : public mojo::ApplicationDelegate,
public net::HttpServer::Delegate {
public:
- SkyDebugger() : is_tracing_(false), weak_ptr_factory_(this) {}
+ SkyDebugger() : is_tracing_(false) {}
virtual ~SkyDebugger() {}
private:
@@ -199,7 +198,6 @@ class SkyDebugger : public mojo::ApplicationDelegate,
mojo::WindowManagerPtr window_manager_;
tracing::TraceCoordinatorPtr tracing_;
std::string url_;
- base::WeakPtrFactory<SkyDebugger> weak_ptr_factory_;
scoped_ptr<net::HttpServer> web_server_;
uint32_t command_port_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698