Skip to content

Commit 3f87ac1

Browse files
committed
changed pointer to scoped_ptr
1 parent 81d7cf5 commit 3f87ac1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/webdriver/extension_qt/q_session_lifecycle_actions.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "q_proxy_parser.h"
1010
#include "common_util.h"
1111
#include "base/string_util.h"
12+
#include "base/memory/scoped_ptr.h"
1213

1314
namespace webdriver {
1415

@@ -34,9 +35,9 @@ Error* QSessionLifeCycleActions::PostInit(const base::DictionaryValue* desired_c
3435
} else {
3536
session_->logger().Log(kInfoLogLevel, "no proxy settings requsted.");
3637
session_->logger().Log(kInfoLogLevel, "Applying system proxy by default.");
37-
DictionaryValue* proxy_system = new DictionaryValue();
38-
proxy_system->SetString("proxyType", "SYSTEM");
39-
error = ParseAndApplyProxySettings(proxy_system);
38+
scoped_ptr<DictionaryValue> proxy_system(new DictionaryValue());
39+
proxy_system.get()->SetString("proxyType", "SYSTEM");
40+
error = ParseAndApplyProxySettings(proxy_system.get());
4041
}
4142
if (error)
4243
return error;

0 commit comments

Comments
 (0)