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

Unified Diff: base/test/test_file_util.h

Issue 2047483003: Add fallback behavior if the last used profile cannot initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bug-614753-fix
Patch Set: Fix clang compile error Created 4 years, 5 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 | « no previous file | base/test/test_file_util_win.cc » ('j') | base/test/test_file_util_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_file_util.h
diff --git a/base/test/test_file_util.h b/base/test/test_file_util.h
index 7042e4848419fd4c3c0200096c7663f5c66b3289..105dcba392396cc1278dc5b9925dcb674548060a 100644
--- a/base/test/test_file_util.h
+++ b/base/test/test_file_util.h
@@ -20,6 +20,10 @@
#include <jni.h>
#endif
+#if defined(OS_WIN)
+#include <windows.h>
+#endif
+
namespace base {
class FilePath;
@@ -40,6 +44,11 @@ bool DieFileDie(const FilePath& file, bool recurse);
bool EvictFileFromSystemCache(const FilePath& file);
#if defined(OS_WIN)
+// Deny |permission| on the file |path| for the current user. |permission| is an
+// ACCESS_MARK structure, and its possible values can be found by searching
Peter Kasting 2016/07/28 20:09:49 MARK -> MASK
WC Leung 2016/08/01 18:03:06 Done, and thanks for catching.
+// "file and directory access rights constants".
Peter Kasting 2016/07/28 20:09:49 Don't say this; "search" implies codesearch. Link
WC Leung 2016/08/01 18:03:06 Thanks for explanation. I've also included https:/
+bool DenyFilePermission(const FilePath& path, DWORD permission);
+
// Returns true if the volume supports Alternate Data Streams.
bool VolumeSupportsADS(const FilePath& path);
« no previous file with comments | « no previous file | base/test/test_file_util_win.cc » ('j') | base/test/test_file_util_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698