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

Unified Diff: content/shell/shell_browser_main_parts.cc

Issue 16360007: [content shell] don't leak the devtools delegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « content/shell/shell_browser_main_parts.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_browser_main_parts.cc
diff --git a/content/shell/shell_browser_main_parts.cc b/content/shell/shell_browser_main_parts.cc
index 3c47011d942f70a4c9a7e69690b5f2a31d10864e..9f887661ed55f8ec4a979fcff8e3dda0503842e4 100644
--- a/content/shell/shell_browser_main_parts.cc
+++ b/content/shell/shell_browser_main_parts.cc
@@ -122,7 +122,7 @@ void ShellBrowserMainParts::PreMainMessageLoopRun() {
Shell::Initialize();
net::NetModule::SetResourceProvider(PlatformResourceProvider);
- devtools_delegate_ = new ShellDevToolsDelegate(browser_context_.get());
+ devtools_delegate_.reset(new ShellDevToolsDelegate(browser_context_.get()));
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) {
Shell::CreateNewWindow(browser_context_.get(),
« no previous file with comments | « content/shell/shell_browser_main_parts.h ('k') | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698