Bug 624742 - Places shouldn't use nsDependentString. r=mak
authorEdgar Flores <edgrf2002@gmail.com>
Thu, 04 Aug 2011 11:34:00 -0400
changeset 73911 d68a492dcabe4a3e6d9bbdaebc0f64c795b1611b
parent 73910 899a225fd580f3d05f1916df40cad91ea98af496
child 73912 03f472cf0a5bd3bedda4bfb55fda62495c151b4c
push id2
push userbsmedberg@mozilla.com
push dateFri, 19 Aug 2011 14:38:13 +0000
reviewersmak
bugs624742
milestone8.0a1
Bug 624742 - Places shouldn't use nsDependentString. r=mak
toolkit/components/places/History.cpp
--- a/toolkit/components/places/History.cpp
+++ b/toolkit/components/places/History.cpp
@@ -1783,17 +1783,17 @@ History::SetURITitle(nsIURI* aURI, const
   if (mShuttingDown) {
     return NS_OK;
   }
 
   if (XRE_GetProcessType() == GeckoProcessType_Content) {
     mozilla::dom::ContentChild * cpc = 
       mozilla::dom::ContentChild::GetSingleton();
     NS_ASSERTION(cpc, "Content Protocol is NULL!");
-    (void)cpc->SendSetURITitle(aURI, nsDependentString(aTitle));
+    (void)cpc->SendSetURITitle(aURI, nsString(aTitle));
     return NS_OK;
   } 
 
   nsNavHistory* navHistory = nsNavHistory::GetHistoryService();
 
   // At first, it seems like nav history should always be available here, no
   // matter what.
   //