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

Unified Diff: chrome/browser/chromeos/gdata/gdata_file_system.cc

Issue 9808023: Grant file access permissions for cached file paths to file browsers/handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another rebase Created 8 years, 9 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
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_file_system.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_file_system.cc b/chrome/browser/chromeos/gdata/gdata_file_system.cc
index 46dc991fd2d273686bd96eeb72eb9a262a65d1b0..668bc06bd158bcef73cc187e142bc54f9a47864d 100644
--- a/chrome/browser/chromeos/gdata/gdata_file_system.cc
+++ b/chrome/browser/chromeos/gdata/gdata_file_system.cc
@@ -1097,6 +1097,10 @@ FilePath GDataFileSystem::GetGDataCachePinnedDirectory() const {
return cache_paths_[GDataRootDirectory::CACHE_TYPE_PINNED];
}
+FilePath GDataFileSystem::GetGDataCachePersistentDirectory() const {
+ return cache_paths_[GDataRootDirectory::CACHE_TYPE_PERSISTENT];
+}
+
GDataFileBase* GDataFileSystem::GetGDataFileInfoFromPath(
const FilePath& file_path) {
lock_.AssertAcquired();
@@ -1983,8 +1987,9 @@ FilePath GDataFileSystem::GetCacheFilePath(
const std::string& resource_id,
const std::string& md5,
GDataRootDirectory::CacheSubDirectoryType sub_dir_type,
- CachedFileOrigin file_origin) {
+ CachedFileOrigin file_origin) const {
DCHECK(sub_dir_type != GDataRootDirectory::CACHE_TYPE_META);
+
// Runs on any thread.
// Filename is formatted as resource_id.md5, i.e. resource_id is the base
// name and md5 is the extension.
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_file_system.h ('k') | chrome/browser/chromeos/gdata/gdata_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698