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

Unified Diff: base/file_util_win.cc

Issue 76633002: Remove IO allowed assert in GetTempDir() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/file_util_win.cc
diff --git a/base/file_util_win.cc b/base/file_util_win.cc
index 323102cf3df21facaaa666d22a7708949ec441fc..44c1205aa659acc7f8249098d3faeaae7bee732d 100644
--- a/base/file_util_win.cc
+++ b/base/file_util_win.cc
@@ -214,8 +214,6 @@ bool DirectoryExists(const FilePath& path) {
}
bool GetTempDir(FilePath* path) {
- ThreadRestrictions::AssertIOAllowed();
-
wchar_t temp_path[MAX_PATH + 1];
DWORD path_len = ::GetTempPath(MAX_PATH, temp_path);
if (path_len >= MAX_PATH || path_len <= 0)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698