File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/webdriver/extension_qt Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
1314namespace 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;
You can’t perform that action at this time.
0 commit comments