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

Issue 384903002: Add file access modes to sk_exists. (Closed)

Created:
6 years, 5 months ago by bungeman-skia
Modified:
6 years, 5 months ago
Reviewers:
mtklein, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Add file access modes to sk_exists. Both Windows and Posix 'access' calls take a mode parameter which, in addition to checking existence, checks access modes. This change exposes this functionality. Committed: https://skia.googlesource.com/skia/+/bf0b9ced0b93d9684b044e0880691768f9aa4394

Patch Set 1 #

Total comments: 4

Patch Set 2 : Avoid platform ifdefs. #

Patch Set 3 : Better comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -12 lines) Patch
M include/core/SkOSFile.h View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M src/ports/SkOSFile_none.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/ports/SkOSFile_posix.cpp View 1 1 chunk +12 lines, -0 lines 0 comments Download
M src/ports/SkOSFile_stdio.cpp View 1 2 chunks +0 lines, -10 lines 0 comments Download
M src/ports/SkOSFile_win.cpp View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
bungeman-skia
The motivation for this is to get the last platform specific calls out of the ...
6 years, 5 months ago (2014-07-10 20:53:45 UTC) #1
reed1
lgtm
6 years, 5 months ago (2014-07-10 21:03:02 UTC) #2
mtklein
https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h File include/core/SkOSFile.h (right): https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h#newcode80 include/core/SkOSFile.h:80: // Returns true if something (file, directory, ???) exists ...
6 years, 5 months ago (2014-07-10 21:03:30 UTC) #3
mtklein
On 2014/07/10 21:03:30, mtklein wrote: > https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h > File include/core/SkOSFile.h (right): > > https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h#newcode80 > ...
6 years, 5 months ago (2014-07-10 21:03:56 UTC) #4
bungeman-skia
https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h File include/core/SkOSFile.h (right): https://codereview.chromium.org/384903002/diff/1/include/core/SkOSFile.h#newcode80 include/core/SkOSFile.h:80: // Returns true if something (file, directory, ???) exists ...
6 years, 5 months ago (2014-07-10 21:50:07 UTC) #5
bungeman-skia
The CQ bit was checked by bungeman@google.com
6 years, 5 months ago (2014-07-10 21:52:37 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/bungeman@google.com/384903002/40001
6 years, 5 months ago (2014-07-10 21:52:50 UTC) #7
commit-bot: I haz the power
6 years, 5 months ago (2014-07-10 22:18:26 UTC) #8
Message was sent while issue was closed.
Change committed as bf0b9ced0b93d9684b044e0880691768f9aa4394

Powered by Google App Engine
This is Rietveld 408576698