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

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

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month 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 | « chrome/browser/net/crl_set_fetcher.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | 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 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();
« no previous file with comments | « chrome/browser/net/crl_set_fetcher.h ('k') | chrome/browser/net/net_error_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698