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

Unified Diff: components/update_client/utils.cc

Issue 2835803002: Refactor the UpdateEngine and its actions in the component updater. (Closed)
Patch Set: feedback up to #6 Created 3 years, 8 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 | « components/update_client/utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/utils.cc
diff --git a/components/update_client/utils.cc b/components/update_client/utils.cc
index 42a2235082aced11055372f92d91039da181e9c4..39365cde8e79b94812d50d2c971c9f9d3d904781 100644
--- a/components/update_client/utils.cc
+++ b/components/update_client/utils.cc
@@ -26,6 +26,7 @@
#include "build/build_config.h"
#include "components/crx_file/id_util.h"
#include "components/data_use_measurement/core/data_use_user_data.h"
+#include "components/update_client/component.h"
#include "components/update_client/configurator.h"
#include "components/update_client/crx_update_item.h"
#include "components/update_client/update_client.h"
@@ -238,8 +239,8 @@ int GetFetchError(const net::URLFetcher& fetcher) {
}
}
-bool HasDiffUpdate(const CrxUpdateItem* update_item) {
- return !update_item->crx_diffurls.empty();
+bool HasDiffUpdate(const Component& component) {
+ return !component.crx_diffurls().empty();
}
bool IsHttpServerError(int status_code) {
« no previous file with comments | « components/update_client/utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698