From 7664709733ea4c003b2af82b34672256aee329ed Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 1 Apr 1999 03:09:35 +0000 Subject: [PATCH] Made the profile-getter return silently if it isn't able to get the browsing profile object from the service manager. git-svn-id: svn://10.0.0.236/trunk@25800 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/network/protocol/http/nsGetBrowsingProfile.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/network/protocol/http/nsGetBrowsingProfile.cpp b/mozilla/network/protocol/http/nsGetBrowsingProfile.cpp index 0976e8be752..8ff2f3ba935 100644 --- a/mozilla/network/protocol/http/nsGetBrowsingProfile.cpp +++ b/mozilla/network/protocol/http/nsGetBrowsingProfile.cpp @@ -1,4 +1,4 @@ -/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * The contents of this file are subject to the Netscape Public License * Version 1.0 (the "NPL"); you may not use this file except in @@ -36,10 +36,9 @@ PRBool BP_GetProfile(char** aProfileStringCopy) nsIBrowsingProfile* profile; if (NS_FAILED(rv = nsServiceManager::GetService(kBrowsingProfileCID, nsIBrowsingProfile::GetIID(), - (nsISupports**) &profile))) { - NS_ERROR("unable to get current browsing profile"); + (nsISupports**) &profile))) + // browsing profile not available return PR_FALSE; - } char buf[kBrowsingProfileCookieSize]; if (NS_FAILED(rv = profile->GetCookieString(buf))) {