Index: chrome/test/perf/generate_profile.cc |
diff --git a/chrome/test/perf/generate_profile.cc b/chrome/test/perf/generate_profile.cc |
index d37060aabe20e8173586c902f6dda7a49ebb1f77..fe46c3d0765ed4aa3f8c1c967c04f10089e0be61 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(); |