DescriptionTry fast-fetch rather than full fetch if drive::FileSystem::GetEntryInfo failed.
GetEntryInfoByPath is not only used for querying an entry info,
but also for just testing the existence of an entry.
So, it is not always desirable to start full fetch when
it does not exist locally.
The new implementation falls back to full fetch after all
when the parent directory's entry is not ready either.
This should not be an issue, however.
Existence testing most typically happens when user tries to
put a new file in a folder, in which case, the folder is
already opened in UI and hence loaded.
BUG=236708
TEST=the steps explained in BUG.
R=satorux@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198671
Patch Set 1 #
Total comments: 2
Patch Set 2 : Added (and fixed) tests. #
Total comments: 5
Patch Set 3 : rebase #Patch Set 4 : Fix comments and function name #Patch Set 5 : rebase #
Messages
Total messages: 10 (0 generated)
|