webengine/osswebengine/cache/src/HttpCacheManager.cpp
branchRCL_3
changeset 93 79859ed3eea9
parent 71 4bd5176e1bc8
child 94 919f36ff910f
--- a/webengine/osswebengine/cache/src/HttpCacheManager.cpp	Thu Aug 19 10:58:56 2010 +0300
+++ b/webengine/osswebengine/cache/src/HttpCacheManager.cpp	Tue Aug 31 16:17:46 2010 +0300
@@ -16,17 +16,17 @@
 */
 
 // INCLUDE FILES
-#include "httpcachemanager.h"
+#include "HttpCacheManager.h"
 #include "HttpCacheHandler.h"
 #include "HttpCacheUtil.h"
 #include "HttpCacheFileWriteHandler.h"
-#include <CenRepNotifyHandler.h>
+#include <cenrepnotifyhandler.h>
 #include <httpcachemanagerinternalcrkeys.h>
 #include <CoreApplicationUIsSDKCRKeys.h>
 #include <centralrepository.h>
-#include <FeatMgr.h>
-#include <http/RHTTPTransaction.h>
-#include <SysUtilDomainCRKeys.h>
+#include <featmgr.h>
+#include <http/rhttptransaction.h>
+#include <sysutildomaincrkeys.h>
 #include <eikenv.h>
 #include <f32file.h>
 #include <e32hashtab.h>
@@ -941,12 +941,9 @@
     // get critical level
     // RAM drive can have different critical level
     TVolumeInfo vinfo;
-    RFs fsSession;
-    User::LeaveIfError(fsSession.Connect());
-    CleanupClosePushL( fsSession );
-    User::LeaveIfError(fsSession.Volume(vinfo, drive));
+    User::LeaveIfError(CCoeEnv::Static()->FsSession().Volume(vinfo, drive));
+    //
     User::LeaveIfError(aRepository.Get((vinfo.iDrive.iType == EMediaRam ? KRamDiskCriticalLevel : KDiskCriticalThreshold), aCriticalLevel));
-    CleanupStack::PopAndDestroy(&fsSession);
     }
 
 void CHttpCacheManager::CreateHttpCacheL( const TInt& aSecIdInt, const TInt& aCacheSize, const TInt& aCriticalLevel, const THttpCachePostponeParameters& aPostpone )