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

Unified Diff: ios/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 | « ios/chrome/browser/net/crl_set_fetcher.h ('k') | ios/chrome/browser/sync/ios_chrome_sync_client.h » ('j') | 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 7fe5a9f6cfefcb4adea5b05395e75989f9648166..dd75b215a7eff001421212ddd6862c7d8ace8acc 100644
--- a/ios/chrome/browser/net/crl_set_fetcher.cc
+++ b/ios/chrome/browser/net/crl_set_fetcher.cc
@@ -7,6 +7,7 @@
#include <stdint.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"
@@ -15,6 +16,7 @@
#include "base/trace_event/trace_event.h"
#include "components/component_updater/component_updater_service.h"
#include "components/update_client/update_client.h"
+#include "components/update_client/utils.h"
#include "ios/chrome/browser/chrome_constants.h"
#include "ios/web/public/web_thread.h"
#include "net/cert/crl_set.h"
@@ -158,8 +160,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 | « ios/chrome/browser/net/crl_set_fetcher.h ('k') | ios/chrome/browser/sync/ios_chrome_sync_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698