summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebRequestContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebRequestContext.cpp')
-rw-r--r--WebKit/android/WebCoreSupport/WebRequestContext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/WebKit/android/WebCoreSupport/WebRequestContext.cpp b/WebKit/android/WebCoreSupport/WebRequestContext.cpp
index 1a82449..9d8ad66 100644
--- a/WebKit/android/WebCoreSupport/WebRequestContext.cpp
+++ b/WebKit/android/WebCoreSupport/WebRequestContext.cpp
@@ -224,7 +224,7 @@ static void removeFileOrDirectory(const char* filename)
unlink(filename);
}
-bool WebRequestContext::cleanupPrivateBrowsingFiles(const std::string& databaseDirectory, const std::string& cacheDirectory)
+bool WebRequestContext::cleanupPrivateBrowsingFiles()
{
// This is called on the UI thread.
MutexLocker lock(privateBrowsingContextMutex);
@@ -232,10 +232,10 @@ bool WebRequestContext::cleanupPrivateBrowsingFiles(const std::string& databaseD
if (!privateBrowsingContext || privateBrowsingContext->HasOneRef()) {
privateBrowsingContext = 0;
- std::string cookiePath(databaseDirectory);
+ std::string cookiePath = getDatabaseDirectory();
cookiePath.append(kCookiesDatabaseFilenamePrivate);
removeFileOrDirectory(cookiePath.c_str());
- std::string cachePath(cacheDirectory);
+ std::string cachePath = getCacheDirectory();
cachePath.append(kCacheDirectoryPrivate);
removeFileOrDirectory(cachePath.c_str());
return true;