diff options
author | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 17:19:49 +0000 |
---|---|---|
committer | rmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-23 17:19:49 +0000 |
commit | 9d21ec6f72db7c8c866ac36798df22cf690c20b0 (patch) | |
tree | 86fa2d9f13c08d1d96d2a848573115a38b619fbf /chrome/test/perf | |
parent | aba8c0f49ce5ca7a2e7305d1ff1a8c7dd4404db4 (diff) | |
download | chromium_src-9d21ec6f72db7c8c866ac36798df22cf690c20b0.zip chromium_src-9d21ec6f72db7c8c866ac36798df22cf690c20b0.tar.gz chromium_src-9d21ec6f72db7c8c866ac36798df22cf690c20b0.tar.bz2 |
Add asserts to TestingProfile::CreateHistoryService to ensure files are deleted
BUG=
Review URL: https://chromiumcodereview.appspot.com/19616004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/perf')
-rw-r--r-- | chrome/test/perf/generate_profile.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/test/perf/generate_profile.cc b/chrome/test/perf/generate_profile.cc index d37060a..fe46c3d 100644 --- a/chrome/test/perf/generate_profile.cc +++ b/chrome/test/perf/generate_profile.cc @@ -229,7 +229,10 @@ bool GenerateProfile(GenerateProfileTypes types, content::TestBrowserThread ui_thread(BrowserThread::UI, &message_loop); content::TestBrowserThread db_thread(BrowserThread::DB, &message_loop); TestingProfile profile; - profile.CreateHistoryService(false, false); + if (!profile.CreateHistoryService(false, false)) { + PLOG(ERROR) << "Creating history service failed"; + return false; + } if (types & TOP_SITES) { profile.CreateTopSites(); profile.BlockUntilTopSitesLoaded(); |