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

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

Issue 216923006: Add a component updater for the CLD2 data file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows file path literals, change android flags back to normal Created 6 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
Index: chrome/browser/component_updater/update_checker.cc
diff --git a/chrome/browser/component_updater/update_checker.cc b/chrome/browser/component_updater/update_checker.cc
index f1800cdd1a7817309c9d865db34a4b4ac6a7415a..bd2fc0a82ab8055d2eb7a9aeda34c7c43f2e5a63 100644
--- a/chrome/browser/component_updater/update_checker.cc
+++ b/chrome/browser/component_updater/update_checker.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/component_updater/update_checker.h"
#include "base/compiler_specific.h"
+#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/component_updater/component_updater_utils.h"
#include "chrome/browser/component_updater/crx_update_item.h"
@@ -54,6 +55,7 @@ std::string BuildUpdateCheckRequest(const std::vector<CrxUpdateItem*>& items,
}
base::StringAppendF(&app, "</app>");
app_elements.append(app);
+ VLOG(1) << "Appending to update request: " << app;
}
return BuildProtocolRequest(app_elements, additional_attributes);
@@ -140,10 +142,12 @@ void UpdateCheckerImpl::OnURLFetchComplete(const net::URLFetcher* source) {
if (!update_response.Parse(xml)) {
error = -1;
error_message = update_response.errors();
+ VLOG(1) << "Update request failed: " << error_message;
}
} else {
error = GetFetchError(*source);
error_message.assign("network error");
+ VLOG(1) << "Update request failed: network error";
}
url_fetcher_.reset();

Powered by Google App Engine
This is Rietveld 408576698