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

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

Issue 2483513002: Revert of Makes the component installers return a Result instead of a bool. (Closed)
Patch Set: 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') | 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..7fe5a9f6cfefcb4adea5b05395e75989f9648166 100644
--- a/ios/chrome/browser/net/crl_set_fetcher.cc
+++ b/ios/chrome/browser/net/crl_set_fetcher.cc
@@ -7,7 +7,6 @@
#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"
@@ -16,7 +15,6 @@
#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"
@@ -160,16 +158,8 @@
<< " from component installer";
}
-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) {
+bool CRLSetFetcher::Install(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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698