Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Unified Diff: content/browser/renderer_host/pepper_file_message_filter.cc

Issue 9981015: Add an interface for Flash to clear its data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/pepper_file_message_filter.cc
diff --git a/content/browser/renderer_host/pepper_file_message_filter.cc b/content/browser/renderer_host/pepper_file_message_filter.cc
index d6abca9321dd3f87091bbb4cdc438ae0c768980c..722db59fa749d4daf5608d183480e8cc89a5fb25 100644
--- a/content/browser/renderer_host/pepper_file_message_filter.cc
+++ b/content/browser/renderer_host/pepper_file_message_filter.cc
@@ -41,8 +41,7 @@ PepperFileMessageFilter::PepperFileMessageFilter(
int child_id, content::BrowserContext* browser_context)
: child_id_(child_id),
channel_(NULL) {
- pepper_path_ =
- browser_context->GetPath().Append(FILE_PATH_LITERAL("Pepper Data"));
+ pepper_path_ = GetDataDirName(browser_context->GetPath());
}
PepperFileMessageFilter::~PepperFileMessageFilter() {
@@ -76,6 +75,11 @@ void PepperFileMessageFilter::OnDestruct() const {
BrowserThread::DeleteOnIOThread::Destruct(this);
}
+// static
+FilePath PepperFileMessageFilter::GetDataDirName(const FilePath& profile_path) {
+ return profile_path.Append(FILE_PATH_LITERAL("Pepper Data"));
+}
+
// Called on the FILE thread:
void PepperFileMessageFilter::OnOpenFile(
const webkit::ppapi::PepperFilePath& path,
« no previous file with comments | « content/browser/renderer_host/pepper_file_message_filter.h ('k') | content/browser/renderer_host/render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698