Bug 1422856 - Stop using GetNativePath in GMPServiceParent. r?cpearce
MozReview-Commit-ID: 2zr2RfZOPYs
--- a/dom/media/gmp/GMPServiceParent.cpp
+++ b/dom/media/gmp/GMPServiceParent.cpp
@@ -970,22 +970,20 @@ static void Dummy(RefPtr<GMPParent>& aOn
}
void
GeckoMediaPluginServiceParent::PluginTerminated(const RefPtr<GMPParent>& aPlugin)
{
MOZ_ASSERT(mGMPThread->EventTarget()->IsOnCurrentThread());
if (aPlugin->IsMarkedForDeletion()) {
- nsCString path8;
+ nsString path;
RefPtr<nsIFile> dir = aPlugin->GetDirectory();
- nsresult rv = dir->GetNativePath(path8);
+ nsresult rv = dir->GetPath(path);
NS_ENSURE_SUCCESS_VOID(rv);
-
- nsString path = NS_ConvertUTF8toUTF16(path8);
if (mPluginsWaitingForDeletion.Contains(path)) {
RemoveOnGMPThread(path, true /* delete */, true /* can defer */);
}
}
}
void
GeckoMediaPluginServiceParent::ReAddOnGMPThread(const RefPtr<GMPParent>& aOld)