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

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

Issue 430643002: Correcting the version field in the Chrome-Proxy header to be the chromium build and patch number. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Lei comments Created 6 years, 5 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.h
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
index f75f20dfdcb93634e5b0670678a8db05eb202132..ab9b147daf4e9a1d4827ab6ae37c9bffc07f45f4 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h
@@ -32,6 +32,14 @@ class DataReductionProxyChromeSettings
// get the appropriate pref service.
virtual void InitDataReductionProxySettings(Profile* profile);
+ // Using the chrome::VersionInfo version, returns the build and patch portion
+ // of the string delimited by a period. If the chrome::VersionInfo version
+ // isn't of the form xx.xx.xx.xx returns an empty string.
+ static std::string GetBuildAndPatchNumber();
+
+ // Gets the client type for the data reduction proxy.
+ static std::string GetClient();
+
private:
DISALLOW_COPY_AND_ASSIGN(DataReductionProxyChromeSettings);
};

Powered by Google App Engine
This is Rietveld 408576698