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

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

Issue 880963006: Create a new DataReductionProxyConfig class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_fact ory.h" 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 9 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag e_stats.h" 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag e_stats.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 if (DataReductionProxyParams::IsIncludedInHoldbackFieldTrial()) 64 if (DataReductionProxyParams::IsIncludedInHoldbackFieldTrial())
65 flags |= DataReductionProxyParams::kHoldback; 65 flags |= DataReductionProxyParams::kHoldback;
66 #if defined(OS_ANDROID) 66 #if defined(OS_ANDROID)
67 if (DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial( 67 if (DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
68 base::android::BuildInfo::GetInstance()->android_build_fp())) { 68 base::android::BuildInfo::GetInstance()->android_build_fp())) {
69 flags |= DataReductionProxyParams::kPromoAllowed; 69 flags |= DataReductionProxyParams::kPromoAllowed;
70 } 70 }
71 #endif 71 #endif
72 72
73 return new DataReductionProxyChromeSettings( 73 return new DataReductionProxyChromeSettings(
74 new DataReductionProxyParams(flags)); 74 scoped_ptr<DataReductionProxyParams>(new DataReductionProxyParams(flags))
75 .Pass());
75 } 76 }
OLDNEW
« no previous file with comments | « chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc ('k') | components/components_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698