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

Unified Diff: chrome/browser/safe_browsing/protocol_manager_helper.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/safe_browsing/protocol_manager_helper.cc
diff --git a/chrome/browser/safe_browsing/protocol_manager_helper.cc b/chrome/browser/safe_browsing/protocol_manager_helper.cc
index 2066a8cb08408a690b8800c0aa7d5cc141ebe888..ec091d42366e35e1b80da8d13bb5e63d129eb269 100644
--- a/chrome/browser/safe_browsing/protocol_manager_helper.cc
+++ b/chrome/browser/safe_browsing/protocol_manager_helper.cc
@@ -12,8 +12,8 @@
#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
-#include "chrome/common/chrome_version_info.h"
#include "chrome/common/env_vars.h"
+#include "components/version_info/version_info.h"
#include "google_apis/google_api_keys.h"
#include "net/base/escape.h"
@@ -30,11 +30,10 @@ SafeBrowsingProtocolConfig::~SafeBrowsingProtocolConfig() {
// static
std::string SafeBrowsingProtocolManagerHelper::Version() {
- chrome::VersionInfo version_info;
- if (version_info.Version().empty())
+ if (version_info::GetVersionNumber().empty())
return "0.1";
else
- return version_info.Version();
+ return version_info::GetVersionNumber();
}
// static
« no previous file with comments | « chrome/browser/safe_browsing/protocol_manager.cc ('k') | chrome/browser/search_engines/ui_thread_search_terms_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698