Do not start unnecessary distillers
commit903127d3f1676a4bd2002a2b157e98ecc466340b
authormdjones <mdjones@chromium.org>
Wed, 17 Jun 2015 22:12:15 +0000 (17 15:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 17 Jun 2015 22:12:53 +0000 (17 22:12 +0000)
treea9ea02fc6f751625fe117f238f53aa33f98c6b10
parente34dea5c3a9d6e94ab14e8adb07da18ab9456612
Do not start unnecessary distillers

Extra WebContents were being created because the distiller could
not distinguish between new and existing requests based on URL.
This change adds a boolean parameter to the GetOrCreate... functions
in DomDistillerService that will be set to true if a TaskTracker
needed to be created and false otherwise.

BUG=493483

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

Cr-Commit-Position: refs/heads/master@{#334940}
components/dom_distiller/core/dom_distiller_service.cc
components/dom_distiller/core/dom_distiller_service.h