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

Unified Diff: chrome/browser/chromeos/gdata/gdata_util.h

Issue 10067021: Postpone setting up file handler's file permissions if handler is running lazy background page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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: chrome/browser/chromeos/gdata/gdata_util.h
diff --git a/chrome/browser/chromeos/gdata/gdata_util.h b/chrome/browser/chromeos/gdata/gdata_util.h
index 594bc0cf5d46b4e6b826db4e319c773db6eb3991..cf5cd118c9d65fefaa74b9d1e2d32e28b7e9db7b 100644
--- a/chrome/browser/chromeos/gdata/gdata_util.h
+++ b/chrome/browser/chromeos/gdata/gdata_util.h
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <vector>
#include "googleurl/src/gurl.h"
@@ -43,6 +44,13 @@ bool IsUnderGDataMountPoint(const FilePath& path);
// Examples: ExtractGDatPath("/special/gdata/foo.txt") => "gdata/foo.txt"
FilePath ExtractGDataPath(const FilePath& path);
+// Returns vector of all possible cache paths for a given path on gdata mount
+// point.
+void InsertGDataCachePathsPermissions(
+ Profile* profile_,
+ const FilePath& gdata_path,
+ std::vector<std::pair<FilePath, int> >* cache_paths);
+
// Grants read-only file access permissions to the process whose id is |pid|
// with ChildProcessSecurityPolicy for all possible cache paths that may be
// given to the specified file.
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.cc ('k') | chrome/browser/chromeos/gdata/gdata_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698