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

Unified Diff: chrome/browser/update_client/chrome_update_query_params_delegate.cc

Issue 1269773002: Cleanup VersionInfo after componentization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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/update_client/chrome_update_query_params_delegate.cc
diff --git a/chrome/browser/update_client/chrome_update_query_params_delegate.cc b/chrome/browser/update_client/chrome_update_query_params_delegate.cc
index 6af75dcba3be031c88f2ee40620133a2a30ccb5a..0e6b2abe0c54ebc7440df6c7d21e19f66118c7df 100644
--- a/chrome/browser/update_client/chrome_update_query_params_delegate.cc
+++ b/chrome/browser/update_client/chrome_update_query_params_delegate.cc
@@ -7,7 +7,8 @@
#include "base/lazy_instance.h"
#include "base/strings/stringprintf.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/common/chrome_version_info.h"
+#include "chrome/common/channel_info.h"
+#include "components/version_info/version_info.h"
namespace {
@@ -35,14 +36,14 @@ ChromeUpdateQueryParamsDelegate::GetInstance() {
}
std::string ChromeUpdateQueryParamsDelegate::GetExtraParams() {
- return base::StringPrintf("&prodchannel=%s&prodversion=%s&lang=%s",
- GetChannelString(),
- chrome::VersionInfo().Version().c_str(), GetLang());
+ return base::StringPrintf(
+ "&prodchannel=%s&prodversion=%s&lang=%s", GetChannelString(),
+ version_info::GetVersionNumber().c_str(), GetLang());
}
// static
const char* ChromeUpdateQueryParamsDelegate::GetChannelString() {
- switch (chrome::VersionInfo::GetChannel()) {
+ switch (chrome::GetChannel()) {
case version_info::Channel::STABLE:
return kStable;
break;

Powered by Google App Engine
This is Rietveld 408576698