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

Unified Diff: chrome/browser/extensions/api/file_handlers/app_file_handler_util.h

Issue 306073004: Rename "CheckWritable" to "PrepareForWritableApp" to reflect the actual behavior. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed review comments. Created 6 years, 7 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/extensions/api/file_handlers/app_file_handler_util.h
diff --git a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
index 53d003602d3eed3a8343c75a562ff3f99ae3223e..ef43bbf84706c421964a1eac89392c05ec8ea667 100644
--- a/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
+++ b/chrome/browser/extensions/api/file_handlers/app_file_handler_util.h
@@ -66,7 +66,12 @@ apps::file_handler_util::GrantedFileEntry CreateFileEntry(
const base::FilePath& path,
bool is_directory);
-void CheckWritableFiles(
+// When |is_directory| is true, it verifies that directories exist at each of
+// the |paths| and calls back to |on_success| or otherwise to |on_failure|.
+// When |is_directory| is false, it ensures regular files exists (not links and
+// directories) at the |paths|, creating files if needed, and calls back to
+// |on_success| or to |on_failure| depending on the result.
+void PrepareFilesForWritableApp(
const std::vector<base::FilePath>& paths,
Profile* profile,
bool is_directory,

Powered by Google App Engine
This is Rietveld 408576698