Bug 685236 - Stop using GetNativePath in uriloader/exthandler. r=bz

MozReview-Commit-ID: EmTs4OCnw6K

--HG--
extra : source : 62d833ba629922494cab7ab0d54025d7c21ced35
extra : intermediate-source : dff1c10f20e54b2c5cb1c4c14e6a77fcf20f18d8
This commit is contained in:
Masatoshi Kimura 2017-12-15 21:53:51 +09:00
parent 32bbccbd78
commit 9cb3c17ed9

View File

@ -304,9 +304,7 @@ nsMIMEInfoBase::LaunchWithFile(nsIFile* aFile)
rv = localHandler->GetExecutable(getter_AddRefs(executable));
NS_ENSURE_SUCCESS(rv, rv);
nsAutoCString path;
aFile->GetNativePath(path);
return LaunchWithIProcess(executable, path);
return LaunchWithIProcess(executable, aFile->NativePath());
}
return NS_ERROR_INVALID_ARG;
@ -422,10 +420,7 @@ nsMIMEInfoImpl::LaunchDefaultWithFile(nsIFile* aFile)
if (!mDefaultApplication)
return NS_ERROR_FILE_NOT_FOUND;
nsAutoCString nativePath;
aFile->GetNativePath(nativePath);
return LaunchWithIProcess(mDefaultApplication, nativePath);
return LaunchWithIProcess(mDefaultApplication, aFile->NativePath());
}
NS_IMETHODIMP