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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc

Issue 530153002: Add build and patch to Chrome-Proxy header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Full version to auth request handler Created 6 years, 3 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/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
index 26be2de2cd7dc939dba07a2f3d4b57d189009c0c..cd4a454231a901e4a7ed5644a412dc0541855f09 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
@@ -6,13 +6,11 @@
#include "base/memory/scoped_ptr.h"
#include "base/prefs/pref_service.h"
-#include "base/strings/string_split.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/common/chrome_version_info.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_auth_request_handler.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_configurator.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
@@ -54,16 +52,6 @@ void DataReductionProxyChromeSettings::RegisterSyntheticFieldTrial(
}
// static
-std::string DataReductionProxyChromeSettings::GetBuildAndPatchNumber() {
- chrome::VersionInfo version_info;
- std::vector<std::string> version_parts;
- base::SplitString(version_info.Version(), '.', &version_parts);
- if (version_parts.size() != 4)
- return "";
- return version_parts[2] + version_parts[3];
-}
-
-// static
std::string DataReductionProxyChromeSettings::GetClient() {
#if defined(OS_ANDROID)
return data_reduction_proxy::kClientChromeAndroid;

Powered by Google App Engine
This is Rietveld 408576698