summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles/profile_io_data.h
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 11:56:34 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 11:56:34 +0000
commitad06b54a27a192ea98abf6ea44fe8d56127d1ba8 (patch)
tree655d5a6b91a5af78ec4610a9d3f4589ada1db4bd /chrome/browser/profiles/profile_io_data.h
parent569498f80e194f29a1a92ae83cdead3a6ffe1564 (diff)
downloadchromium_src-ad06b54a27a192ea98abf6ea44fe8d56127d1ba8.zip
chromium_src-ad06b54a27a192ea98abf6ea44fe8d56127d1ba8.tar.gz
chromium_src-ad06b54a27a192ea98abf6ea44fe8d56127d1ba8.tar.bz2
Don't show the one-click-sync infobar when sync is disabled by policy.
BUG=164912 Review URL: https://codereview.chromium.org/11500005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile_io_data.h')
-rw-r--r--chrome/browser/profiles/profile_io_data.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index 34fdecb..caa5faa 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -141,6 +141,10 @@ class ProfileIOData {
return &printing_enabled_;
}
+ BooleanPrefMember* sync_disabled() const {
+ return &sync_disabled_;
+ }
+
net::TransportSecurityState* transport_security_state() const {
return transport_security_state_.get();
}
@@ -415,6 +419,7 @@ class ProfileIOData {
mutable BooleanPrefMember force_safesearch_;
mutable BooleanPrefMember safe_browsing_enabled_;
mutable BooleanPrefMember printing_enabled_;
+ mutable BooleanPrefMember sync_disabled_;
// TODO(marja): Remove session_startup_pref_ if no longer needed.
mutable IntegerPrefMember session_startup_pref_;