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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc

Issue 596053003: Add client type in chrome-proxy header for desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@extension
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/prefs/pref_service.h" 8 #include "base/prefs/pref_service.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 10 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 "DataReductionProxyEnabled", 49 "DataReductionProxyEnabled",
50 data_reduction_proxy_enabled ? "true" : "false"); 50 data_reduction_proxy_enabled ? "true" : "false");
51 } 51 }
52 52
53 // static 53 // static
54 std::string DataReductionProxyChromeSettings::GetClient() { 54 std::string DataReductionProxyChromeSettings::GetClient() {
55 #if defined(OS_ANDROID) 55 #if defined(OS_ANDROID)
56 return data_reduction_proxy::kClientChromeAndroid; 56 return data_reduction_proxy::kClientChromeAndroid;
57 #elif defined(OS_IOS) 57 #elif defined(OS_IOS)
58 return data_reduction_proxy::kClientChromeIOS; 58 return data_reduction_proxy::kClientChromeIOS;
59 #elif defined(OS_MACOSX)
60 return data_reduction_proxy::kClientMac;
61 #elif defined(OS_LINUX)
62 return data_reduction_proxy::kClientLinux;
63 #elif defined(OS_WIN)
64 return data_reduction_proxy::kClientWin;
65 #elif defined(OS_FREEBSD)
66 return data_reduction_proxy::kClientFreeBsd;
67 #elif defined(OS_OPENBSD)
68 return data_reduction_proxy::kClientOpenBsd;
69 #elif defined(OS_SOLARIS)
70 return data_reduction_proxy::kClientSolaris;
71 #elif defined(OS_QNX)
72 return data_reduction_proxy::kClientQnx;
59 #else 73 #else
60 return ""; 74 return "";
61 #endif 75 #endif
62 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698