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 118877 5c1d67e0c24266434ee14241bd119eb490caa973
parent 118876 514f49e853fae4795eb515191f07c487da7706a3
child 118878 cbfd20cafcfb175d089143cca8bd61cbe80cb347
push id143
push userryanvm@gmail.com
push dateThu, 02 May 2013 13:11:17 +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
@@ -574,17 +574,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.");
       }
     }
   }