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

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

Issue 2913293002: 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: ios/chrome/browser/net/crl_set_fetcher.cc
diff --git a/ios/chrome/browser/net/crl_set_fetcher.cc b/ios/chrome/browser/net/crl_set_fetcher.cc
index dd75b215a7eff001421212ddd6862c7d8ace8acc..92966ca6f3860785d93f0069af651253558d7406 100644
--- a/ios/chrome/browser/net/crl_set_fetcher.cc
+++ b/ios/chrome/browser/net/crl_set_fetcher.cc
@@ -163,9 +163,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 /* recursive */);
+ 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