Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/WebRequestJsObject.cpp

Issue 10310030: Convert references to FileSystem & Co. into shared pointers (avoid use after free) (Closed)
Patch Set: Created April 18, 2013, 11:59 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/WebRequestJsObject.cpp
===================================================================
--- a/src/WebRequestJsObject.cpp
+++ b/src/WebRequestJsObject.cpp
@@ -34,17 +34,17 @@ namespace
callback = arguments[2];
if (!callback->IsFunction())
throw std::runtime_error("Third argument to GET must be a function");
}
void Run()
{
- AdblockPlus::ServerResponse result = jsEngine.GetWebRequest().GET(url, headers);
+ AdblockPlus::ServerResponse result = jsEngine.GetWebRequest()->GET(url, headers);
AdblockPlus::JsEngine::Context context(jsEngine);
AdblockPlus::JsValuePtr resultObject = jsEngine.NewObject();
resultObject->SetProperty("status", result.status);
resultObject->SetProperty("responseStatus", result.responseStatus);
resultObject->SetProperty("responseText", result.responseText);
« src/JsEngine.cpp ('K') | « src/JsEngine.cpp ('k') | test/AppInfoJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld