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

Unified Diff: webkit/tools/test_shell/test_shell_request_context.cc

Issue 13701: Use automatic memory management for URLRequestContext's members.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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 | « webkit/tools/test_shell/plugin_tests.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_request_context.cc
===================================================================
--- webkit/tools/test_shell/test_shell_request_context.cc (revision 6881)
+++ webkit/tools/test_shell/test_shell_request_context.cc (working copy)
@@ -23,7 +23,7 @@
const std::wstring& cache_path,
net::HttpCache::Mode cache_mode,
bool no_proxy) {
- cookie_store_ = new net::CookieMonster();
+ cookie_store_.reset(new net::CookieMonster());
user_agent_ = webkit_glue::GetUserAgent();
@@ -42,12 +42,9 @@
cache = new net::HttpCache(proxy_service_, cache_path, 0);
}
cache->set_mode(cache_mode);
- http_transaction_factory_ = cache;
+ http_transaction_factory_.reset(cache);
}
TestShellRequestContext::~TestShellRequestContext() {
- delete cookie_store_;
- delete http_transaction_factory_;
- delete proxy_service_;
}
« no previous file with comments | « webkit/tools/test_shell/plugin_tests.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698