Check and create for Profile README at profile directory creation.
commitf4f08cfe7fce1644dc09ed926717f5d143c120db
authorcalamity <calamity@chromium.org>
Wed, 17 Jun 2015 02:39:02 +0000 (16 19:39 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 02:39:31 +0000 (17 02:39 +0000)
treec9ef0131346674cf306ee6c9c41f331ca4669097
parentc907e4082cbf7bc04df3b0b9d17b9074a541a680
Check and create for Profile README at profile directory creation.

This CL removes disk accesses on profile load by only checking for
the README file when the profile directory is created.

Currently the disk access is done as a separate task 60 seconds after
every profile load, not just during profile directory creation.

Instead, repurpose the check that ensures the profile directory exists, so
that additional work only happens on profile directory creation.

BUG=483362

Review URL: https://codereview.chromium.org/1111313003

Cr-Commit-Position: refs/heads/master@{#334770}
chrome/browser/profiles/profile_browsertest.cc
chrome/browser/profiles/profile_impl.cc
chrome/browser/profiles/profile_impl.h