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

Unified Diff: webkit/tools/test_shell/plugin_tests.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/glue/plugins/mozilla_extensions.cc ('k') | webkit/tools/test_shell/test_shell_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/plugin_tests.cc
===================================================================
--- webkit/tools/test_shell/plugin_tests.cc (revision 6881)
+++ webkit/tools/test_shell/plugin_tests.cc (working copy)
@@ -29,12 +29,8 @@
class RequestContext : public TestURLRequestContext {
public:
RequestContext() {
- cookie_store_ = new net::CookieMonster();
+ cookie_store_.reset(new net::CookieMonster());
}
-
- virtual ~RequestContext() {
- delete cookie_store_;
- }
};
public:
« no previous file with comments | « webkit/glue/plugins/mozilla_extensions.cc ('k') | webkit/tools/test_shell/test_shell_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698