Bug 866615 - Modify the nsDeviceStorage type from 'movies' to 'videos'. r=dougt, a=tef+
authorEric Chou <echou@mozilla.com>
Mon, 29 Apr 2013 17:10:30 +0800
changeset 119246 4451d7bc0912afe043957e139fd4513adcb8e389
parent 119245 987235c0ba5e37777ad5288b4736a691a43a8e06
child 119247 499c3627e89a1e16d366fdfb78493233428e7b2f
push id747
push userryanvm@gmail.com
push dateThu, 02 May 2013 13:10:59 +0000
reviewersdougt, tef
bugs866615
milestone18.0
Bug 866615 - Modify the nsDeviceStorage type from 'movies' to 'videos'. r=dougt, a=tef+
dom/bluetooth/BluetoothOppManager.cpp
--- a/dom/bluetooth/BluetoothOppManager.cpp
+++ b/dom/bluetooth/BluetoothOppManager.cpp
@@ -575,17 +575,17 @@ BluetoothOppManager::CreateFile()
   if (mimeSvc) {
     nsCString mimeType;
     nsresult rv = mimeSvc->GetTypeFromFile(f, mimeType);
 
     if (NS_SUCCEEDED(rv)) {
       if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("image/"))) {
         mDsFile = new DeviceStorageFile(NS_LITERAL_STRING("pictures"), storagePath);
       } else if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("video/"))) {
-        mDsFile = new DeviceStorageFile(NS_LITERAL_STRING("movies"), storagePath);
+        mDsFile = new DeviceStorageFile(NS_LITERAL_STRING("videos"), storagePath);
       } else if (StringBeginsWith(mimeType, NS_LITERAL_CSTRING("audio/"))) {
         mDsFile = new DeviceStorageFile(NS_LITERAL_STRING("music"), storagePath);
       } else {
         NS_WARNING("Couldn't recognize the mimetype of received file.");
       }
     }
   }