summaryrefslogtreecommitdiffstats
path: root/chrome/browser/memory_purger.cc
diff options
context:
space:
mode:
authorrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 20:56:46 +0000
committerrlp@chromium.org <rlp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-25 20:56:46 +0000
commit92a0fb77799cea67a9f8610bc200cfb61f5b4186 (patch)
tree3c8a0b1107bfcffc83b6f165508bc7fe95be929f /chrome/browser/memory_purger.cc
parent1da9e80a5f4b4577433a980a3b8367089ab0e38e (diff)
downloadchromium_src-92a0fb77799cea67a9f8610bc200cfb61f5b4186.zip
chromium_src-92a0fb77799cea67a9f8610bc200cfb61f5b4186.tar.gz
chromium_src-92a0fb77799cea67a9f8610bc200cfb61f5b4186.tar.bz2
Reverting since this did not fix so I can revert the original change in the hopes that that will put the mac perf back to normal.
Revert 143743 - Fixing the way HistoryServiceFactory access the history service and updated affected files. Previously, it was forcing creation of the HistoryService unnecessarily which caused a decrease in mac performance. BUG=133762,97804 TEST=unittests TBR=sky@chromium.org Review URL: https://chromiumcodereview.appspot.com/10536230 TBR=rlp@chromium.org Review URL: https://chromiumcodereview.appspot.com/10661037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/memory_purger.cc')
-rw-r--r--chrome/browser/memory_purger.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/memory_purger.cc b/chrome/browser/memory_purger.cc
index fd64b20..8877545 100644
--- a/chrome/browser/memory_purger.cc
+++ b/chrome/browser/memory_purger.cc
@@ -111,7 +111,7 @@ void MemoryPurger::PurgeBrowser() {
// Spinning up the history service is expensive, so we avoid doing it if it
// hasn't been done already.
HistoryService* history_service =
- HistoryServiceFactory::GetForProfileWithoutCreating(profiles[i]);
+ HistoryServiceFactory::GetForProfileIfExists(profiles[i]);
if (history_service)
history_service->UnloadBackend();