diff options
author | feng@chromium.org <feng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 04:01:34 +0000 |
---|---|---|
committer | feng@chromium.org <feng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-18 04:01:34 +0000 |
commit | 5b92d4e11edd153eb9f4c4d79bd3c060cb022c37 (patch) | |
tree | f401b61c431d2299048fda4e97f2e07cf8a61a68 /chrome/browser/profiles/profile_io_data.h | |
parent | 41faeb3e715d747537097d4357b658a56d4544fb (diff) | |
download | chromium_src-5b92d4e11edd153eb9f4c4d79bd3c060cb022c37.zip chromium_src-5b92d4e11edd153eb9f4c4d79bd3c060cb022c37.tar.gz chromium_src-5b92d4e11edd153eb9f4c4d79bd3c060cb022c37.tar.bz2 |
[Android] Enable SB protection when --enable-spdy-proxy-auth is on.
The flag is used for testing purpose, and was left out.
Flywheel protection is on when flag is on or setting is on.
BUG=381896
Review URL: https://codereview.chromium.org/398853003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284002 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_io_data.h')
-rw-r--r-- | chrome/browser/profiles/profile_io_data.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h index 690c609..ffd1d79 100644 --- a/chrome/browser/profiles/profile_io_data.h +++ b/chrome/browser/profiles/profile_io_data.h @@ -170,9 +170,13 @@ class ProfileIOData { return &safe_browsing_enabled_; } +#if defined(OS_ANDROID) + // TODO(feng): move the function to protected area. + // IsDataReductionProxyEnabled() should be used as public API. BooleanPrefMember* data_reduction_proxy_enabled() const { return &data_reduction_proxy_enabled_; } +#endif BooleanPrefMember* printing_enabled() const { return &printing_enabled_; @@ -242,6 +246,12 @@ class ProfileIOData { // should only be called from there. bool GetMetricsEnabledStateOnIOThread() const; +#if defined(OS_ANDROID) + // Returns whether or not data reduction proxy is enabled in the browser + // instance on which this profile resides. + bool IsDataReductionProxyEnabled() const; +#endif + void set_client_cert_store_factory_for_testing( const base::Callback<scoped_ptr<net::ClientCertStore>()>& factory) { client_cert_store_factory_ = factory; @@ -534,7 +544,9 @@ class ProfileIOData { mutable BooleanPrefMember enable_do_not_track_; mutable BooleanPrefMember force_safesearch_; mutable BooleanPrefMember safe_browsing_enabled_; +#if defined(OS_ANDROID) mutable BooleanPrefMember data_reduction_proxy_enabled_; +#endif mutable BooleanPrefMember printing_enabled_; mutable BooleanPrefMember sync_disabled_; mutable BooleanPrefMember signin_allowed_; |