Bug 866615 - Modify the nsDeviceStorage type from 'movies' to 'videos', r=dougt
authorEric Chou <echou@mozilla.com>
Mon, 29 Apr 2013 17:10:30 +0800
changeset 130550 3968311ac65becf130d2d0b5fdf8ba10a9a9ab1c
parent 130549 f7aad2536e3eb2e6277f31c9ad05f68dcc80851c
child 130551 d28a41f49785503bfe30ae6c44e0f7f233ac0346
push idunknown
push userunknown
push dateunknown
reviewersdougt
bugs866615
milestone23.0a1
Bug 866615 - Modify the nsDeviceStorage type from 'movies' to 'videos', r=dougt From 19f4e6e369439a1626fbc69ac2dd72b63e56d397 Mon Sep 17 00:00:00 2001
dom/bluetooth/BluetoothOppManager.cpp
--- a/dom/bluetooth/BluetoothOppManager.cpp
+++ b/dom/bluetooth/BluetoothOppManager.cpp
@@ -528,17 +528,17 @@ BluetoothOppManager::CreateDeviceStorage
   nsresult rv = mimeSvc->GetTypeFromFile(aFile, mimeType);
   if (NS_FAILED(rv)) {
     return nullptr;
   }
 
   if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("image/"))) {
     return new DeviceStorageFile(NS_LITERAL_STRING("pictures"), storagePath);
   } else if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("video/"))) {
-    return new DeviceStorageFile(NS_LITERAL_STRING("movies"), storagePath);
+    return new DeviceStorageFile(NS_LITERAL_STRING("videos"), storagePath);
   } else if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("audio/"))) {
     return new DeviceStorageFile(NS_LITERAL_STRING("music"), storagePath);
   } else {
     NS_WARNING("Couldn't recognize the mimetype of received file.");
     return nullptr;
   }
 }