mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 989536 - DeviceStorageFile::GetStatus should always return a valid status. r=janv
This commit is contained in:
parent
109b471a01
commit
1ddf43cd59
@ -1512,6 +1512,8 @@ DeviceStorageFile::DoUnmount(nsAString& aStatus)
|
||||
void
|
||||
DeviceStorageFile::GetStatus(nsAString& aStatus)
|
||||
{
|
||||
aStatus.AssignLiteral("unavailable");
|
||||
|
||||
DeviceStorageTypeChecker* typeChecker
|
||||
= DeviceStorageTypeChecker::CreateOrGet();
|
||||
if (!typeChecker) {
|
||||
@ -1522,7 +1524,6 @@ DeviceStorageFile::GetStatus(nsAString& aStatus)
|
||||
return;
|
||||
}
|
||||
|
||||
aStatus.AssignLiteral("unavailable");
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
nsCOMPtr<nsIVolumeService> vs = do_GetService(NS_VOLUMESERVICE_CONTRACTID);
|
||||
NS_ENSURE_TRUE_VOID(vs);
|
||||
@ -1565,6 +1566,8 @@ DeviceStorageFile::GetStatus(nsAString& aStatus)
|
||||
void
|
||||
DeviceStorageFile::GetStorageStatus(nsAString& aStatus)
|
||||
{
|
||||
aStatus.AssignLiteral("undefined");
|
||||
|
||||
DeviceStorageTypeChecker* typeChecker
|
||||
= DeviceStorageTypeChecker::CreateOrGet();
|
||||
if (!typeChecker) {
|
||||
@ -1575,7 +1578,6 @@ DeviceStorageFile::GetStorageStatus(nsAString& aStatus)
|
||||
return;
|
||||
}
|
||||
|
||||
aStatus.AssignLiteral("undefined");
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
nsCOMPtr<nsIVolumeService> vs = do_GetService(NS_VOLUMESERVICE_CONTRACTID);
|
||||
NS_ENSURE_TRUE_VOID(vs);
|
||||
|
Loading…
Reference in New Issue
Block a user