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

Unified Diff: chrome/common/chrome_content_client_ios.mm

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
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_version_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client_ios.mm
diff --git a/chrome/common/chrome_content_client_ios.mm b/chrome/common/chrome_content_client_ios.mm
index baee77c9329925cc766bc1719baca8ef4eecad4a..48a448ddf58d1ca2c0d19010477e37275f8b2fd6 100644
--- a/chrome/common/chrome_content_client_ios.mm
+++ b/chrome/common/chrome_content_client_ios.mm
@@ -6,8 +6,8 @@
#include "base/logging.h"
#include "base/strings/string_piece.h"
-#include "chrome/common/chrome_version_info.h"
#include "chrome/common/url_constants.h"
+#include "components/version_info/version_info.h"
#include "content/public/common/user_agent.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -36,9 +36,8 @@ void ChromeContentClient::AddAdditionalSchemes(
}
std::string ChromeContentClient::GetProduct() const {
- chrome::VersionInfo version_info;
std::string product("CriOS/");
- product += version_info.Version();
+ product += version_info::GetVersionNumber();
return product;
}
@@ -69,5 +68,5 @@ gfx::Image& ChromeContentClient::GetNativeImageNamed(int resource_id) const {
std::string ChromeContentClient::GetProcessTypeNameInEnglish(int type) {
DCHECK(false) << "Unknown child process type!";
- return "Unknown";
+ return "Unknown";
}
« no previous file with comments | « chrome/common/chrome_content_client.cc ('k') | chrome/common/chrome_version_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698