Bug 673470 - Replace the SQLite SafeBrowsing store with an optimized store. r=dcamp
This commit is contained in:
@@ -171,11 +171,16 @@ nsUrlClassifierStreamUpdater::FetchUpdate(const nsACString & aUpdateUrl,
|
||||
const nsACString & aStreamTable,
|
||||
const nsACString & aServerMAC)
|
||||
{
|
||||
LOG(("(pre) Fetching update from %s\n", PromiseFlatCString(aUpdateUrl).get()));
|
||||
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
nsresult rv = NS_NewURI(getter_AddRefs(uri), aUpdateUrl);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
LOG(("Fetching update from %s\n", PromiseFlatCString(aUpdateUrl).get()));
|
||||
nsCAutoString urlSpec;
|
||||
uri->GetAsciiSpec(urlSpec);
|
||||
|
||||
LOG(("(post) Fetching update from %s\n", urlSpec.get()));
|
||||
|
||||
return FetchUpdate(uri, aRequestBody, aStreamTable, aServerMAC);
|
||||
}
|
||||
@@ -240,6 +245,11 @@ nsUrlClassifierStreamUpdater::DownloadUpdates(
|
||||
mIsUpdating = true;
|
||||
*_retval = true;
|
||||
|
||||
nsCAutoString urlSpec;
|
||||
mUpdateUrl->GetAsciiSpec(urlSpec);
|
||||
|
||||
LOG(("FetchUpdate: %s", urlSpec.get()));
|
||||
//LOG(("requestBody: %s", aRequestBody.get()));
|
||||
|
||||
return FetchUpdate(mUpdateUrl, aRequestBody, EmptyCString(), EmptyCString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user