DescriptionMove extension unpack intermediate dir to Extensions/Temp
This speeds up extension installation on Chrome OS by about 20%. On Chrome OS
the USER_DATA_DIR is in /home/chronos, which is a different file system than
/home/chronos/user where the Extensions directory lives. Thus an attempt to
rename() an extension into place ends up being a recursive directory copy,
which is both non-atomic and slow.
Also add code to clean up the intermediate directory during extension garbage
collection, which might have lead to leaked files in the old code if Chrome
crashed during extension install.
Removed DIR_USER_DATA_TEMP as the extension install code was the only user.
Just use a temp directory for this during tests so we don't have to worry
about profile creation.
BUG=155994
TEST=Manual testing of extension install speed on Chrome OS, unit_tests ExtensionFromWebApp.* ExtensionFromUserScript.* SandboxedUnpackerTest.*
TBR=sky@chromium.org for removing an unused constant from chrome/common/chrome_paths.h
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162880
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : fix windows #
Total comments: 2
Patch Set 4 : standardize names #Messages
Total messages: 6 (0 generated)
|