| Index: chrome/browser/net/crl_set_fetcher.cc
|
| diff --git a/chrome/browser/net/crl_set_fetcher.cc b/chrome/browser/net/crl_set_fetcher.cc
|
| index ef94c014412505405b58d8d5c29a459353720625..3b99a2497d0fd76517671e6f479e04a0c6a1e7ce 100644
|
| --- a/chrome/browser/net/crl_set_fetcher.cc
|
| +++ b/chrome/browser/net/crl_set_fetcher.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/net/crl_set_fetcher.h"
|
|
|
| #include "base/bind.h"
|
| +#include "base/bind_helpers.h"
|
| #include "base/files/file_util.h"
|
| #include "base/numerics/safe_conversions.h"
|
| #include "base/rand_util.h"
|
| @@ -16,6 +17,7 @@
|
| #include "chrome/common/chrome_paths.h"
|
| #include "components/component_updater/component_updater_service.h"
|
| #include "components/update_client/update_client.h"
|
| +#include "components/update_client/utils.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "net/cert/crl_set.h"
|
| #include "net/cert/crl_set_storage.h"
|
| @@ -167,8 +169,16 @@ void CRLSetFetcher::OnUpdateError(int error) {
|
| << " from component installer";
|
| }
|
|
|
| -bool CRLSetFetcher::Install(const base::DictionaryValue& manifest,
|
| - const base::FilePath& unpack_path) {
|
| +update_client::CrxInstaller::Result CRLSetFetcher::Install(
|
| + const base::DictionaryValue& manifest,
|
| + const base::FilePath& unpack_path) {
|
| + return update_client::InstallFunctionWrapper(
|
| + base::Bind(&CRLSetFetcher::DoInstall, base::Unretained(this),
|
| + base::ConstRef(manifest), base::ConstRef(unpack_path)));
|
| +}
|
| +
|
| +bool CRLSetFetcher::DoInstall(const base::DictionaryValue& manifest,
|
| + const base::FilePath& unpack_path) {
|
| base::FilePath crl_set_file_path =
|
| unpack_path.Append(FILE_PATH_LITERAL("crl-set"));
|
| base::FilePath save_to = GetCRLSetFilePath();
|
|
|