Follow up fix to bug 516728. Fixes assertion description and removing an extra ws
authorDoug Turner <dougt@dougt.org>
Sun, 01 Aug 2010 23:38:10 -0700
changeset 48703 78aa896bdf376c7fa952a2c5b39caa1bac8b3442
parent 48702 2b35c781cf9a3a4e8d21eacc7e7072de08681778
child 48704 b838fb5b878d86524e4f669596639e995c9961c5
push id14774
push userdougt@mozilla.com
push dateMon, 02 Aug 2010 06:39:05 +0000
treeherdermozilla-central@78aa896bdf37 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs516728
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Follow up fix to bug 516728. Fixes assertion description and removing an extra ws
toolkit/components/places/src/History.cpp
--- a/toolkit/components/places/src/History.cpp
+++ b/toolkit/components/places/src/History.cpp
@@ -1174,23 +1174,22 @@ History::VisitURI(nsIURI* aURI,
 
 NS_IMETHODIMP
 History::RegisterVisitedCallback(nsIURI* aURI,
                                  Link* aLink)
 {
   NS_ASSERTION(aURI, "Must pass a non-null URI!");
 #ifdef MOZ_IPC
   if (XRE_GetProcessType() == GeckoProcessType_Content) {
-    NS_PRECONDITION(aLink, "Must pass a non-null URI!");
+    NS_PRECONDITION(aLink, "Must pass a non-null Link!");
   }
 #else
-  NS_PRECONDITION(aLink, "Must pass a non-null URI!");
+  NS_PRECONDITION(aLink, "Must pass a non-null Link!");
 #endif
 
-
   // First, ensure that our hash table is setup.
   if (!mObservers.IsInitialized()) {
     NS_ENSURE_TRUE(mObservers.Init(), NS_ERROR_OUT_OF_MEMORY);
   }
 
   // Obtain our array of observers for this URI.
 #ifdef DEBUG
   bool keyAlreadyExists = !!mObservers.GetEntry(aURI);