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

Unified Diff: chrome/browser/component_updater/component_updater_utils.cc

Issue 118703008: Merge 241734 "Added support for multiple urls in the component u..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1750/src/
Patch Set: Created 7 years 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
Index: chrome/browser/component_updater/component_updater_utils.cc
===================================================================
--- chrome/browser/component_updater/component_updater_utils.cc (revision 242136)
+++ chrome/browser/component_updater/component_updater_utils.cc (working copy)
@@ -9,6 +9,7 @@
#include "base/strings/stringprintf.h"
#include "base/sys_info.h"
#include "base/win/windows_version.h"
+#include "chrome/browser/component_updater/crx_update_item.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/omaha_query_params/omaha_query_params.h"
#include "net/base/load_flags.h"
@@ -22,7 +23,8 @@
const std::string& additional_attributes) {
const std::string prod_id(chrome::OmahaQueryParams::GetProdIdString(
chrome::OmahaQueryParams::CHROME));
- const std::string chrome_version(chrome::VersionInfo().Version().c_str());
+ const chrome::VersionInfo chrome_version_info;
+ const std::string chrome_version(chrome_version_info.Version());
std::string request(
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
@@ -119,6 +121,10 @@
}
}
+bool HasDiffUpdate(const CrxUpdateItem* update_item) {
+ return !update_item->crx_diffurls.empty();
+}
+
bool IsHttpServerError(int status_code) {
return 500 <= status_code && status_code < 600;
}
« no previous file with comments | « chrome/browser/component_updater/component_updater_utils.h ('k') | chrome/browser/component_updater/crx_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698