Bug 1428258 - Stop using GetNativePath in chrome/. r?mayhemer
MozReview-Commit-ID: EhsuLxIA1zj
--- a/chrome/nsChromeProtocolHandler.cpp
+++ b/chrome/nsChromeProtocolHandler.cpp
@@ -166,19 +166,18 @@ nsChromeProtocolHandler::NewChannel2(nsI
nsCOMPtr<nsIFileChannel> fileChan(do_QueryInterface(result));
if (fileChan) {
nsCOMPtr<nsIFile> file;
fileChan->GetFile(getter_AddRefs(file));
bool exists = false;
file->Exists(&exists);
if (!exists) {
- nsAutoCString path;
- file->GetNativePath(path);
- printf("Chrome file doesn't exist: %s\n", path.get());
+ printf("Chrome file doesn't exist: %s\n",
+ file->HumanReadablePath().get());
}
}
#endif
// Make sure that the channel remembers where it was
// originally loaded from.
rv = aLoadInfo->SetResultPrincipalURI(savedResultPrincipalURI);
NS_ENSURE_SUCCESS(rv, rv);