summaryrefslogtreecommitdiffstats
path: root/chrome/test/perf
diff options
context:
space:
mode:
authorrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 17:19:49 +0000
committerrmcilroy@chromium.org <rmcilroy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-23 17:19:49 +0000
commit9d21ec6f72db7c8c866ac36798df22cf690c20b0 (patch)
tree86fa2d9f13c08d1d96d2a848573115a38b619fbf /chrome/test/perf
parentaba8c0f49ce5ca7a2e7305d1ff1a8c7dd4404db4 (diff)
downloadchromium_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.cc5
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();