Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: chrome/browser/net/crl_set_fetcher.cc

Issue 2906683002: Clean up the unpack directory for CRLSet component. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f56053f80a75cf763da34397551df544eb450794..1a2bfbaefc8f6ba8ad51d7b5269577c546c28c51 100644
--- a/chrome/browser/net/crl_set_fetcher.cc
+++ b/chrome/browser/net/crl_set_fetcher.cc
@@ -168,9 +168,11 @@ void CRLSetFetcher::OnUpdateError(int error) {
update_client::CrxInstaller::Result CRLSetFetcher::Install(
const base::DictionaryValue& manifest,
const base::FilePath& unpack_path) {
- return update_client::InstallFunctionWrapper(
+ const auto result = update_client::InstallFunctionWrapper(
base::Bind(&CRLSetFetcher::DoInstall, base::Unretained(this),
base::ConstRef(manifest), base::ConstRef(unpack_path)));
+ base::DeleteFile(unpack_path, true);
+ return result;
}
bool CRLSetFetcher::DoInstall(const base::DictionaryValue& manifest,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698