diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-09 10:56:03 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-09 10:56:03 +0000 |
commit | c80ca12f3e74e8d54653c312bbd3c92afd0fee55 (patch) | |
tree | d684790e427bd3e20ba41090603e876251fdd043 /rlz/test | |
parent | 93cf4f34365d9fc2a473a3b4c4c4a0cbea3e29d6 (diff) | |
download | chromium_src-c80ca12f3e74e8d54653c312bbd3c92afd0fee55.zip chromium_src-c80ca12f3e74e8d54653c312bbd3c92afd0fee55.tar.gz chromium_src-c80ca12f3e74e8d54653c312bbd3c92afd0fee55.tar.bz2 |
chromeos: Replace ModifyCacheState with a number of small functions to simplify DriveCache
ModifyCacheState was doing a number of things at the same time:
- Move or copy a file. (and copy was only used by Store())
- If the symlink_path is not empty, create or delete symlink
That says, ModifyCacheState is unnecessarily complicated so that it can be dividend into four small functions, MoveFile, CopyFile, CreateSymlink and DeleteSymlink.
BUG=None
TEST=unit_tests --gtest_filter="Drive*"
Review URL: https://chromiumcodereview.appspot.com/11358157
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166890 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz/test')
0 files changed, 0 insertions, 0 deletions