From eb32ba6f51d0c21d58cd7d89785285ff8fa64624 Mon Sep 17 00:00:00 2001 From: Zeno Albisser Date: Thu, 21 Nov 2013 14:09:57 +0100 Subject: Update chromium to branch 1599. Change-Id: I04e775a946a208bb4500d3b722bcb05c82b9d7cb Reviewed-by: Andras Becsi --- chromium/sync/engine/syncer_proto_util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chromium/sync/engine/syncer_proto_util.h') diff --git a/chromium/sync/engine/syncer_proto_util.h b/chromium/sync/engine/syncer_proto_util.h index 4e627e0b1c0..d2468c0294d 100644 --- a/chromium/sync/engine/syncer_proto_util.h +++ b/chromium/sync/engine/syncer_proto_util.h @@ -129,6 +129,10 @@ class SYNC_EXPORT_PRIVATE SyncerProtoUtil { const sync_pb::ClientToServerResponse& response, syncable::Directory* dir); + // Returns true if sync is disabled by admin for a dasher account. + static bool IsSyncDisabledByAdmin( + const sync_pb::ClientToServerResponse& response); + // Post the message using the scm, and do some processing on the returned // headers. Decode the server response. static bool PostAndProcessHeaders(ServerConnectionManager* scm, @@ -142,6 +146,7 @@ class SYNC_EXPORT_PRIVATE SyncerProtoUtil { friend class SyncerProtoUtilTest; FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, AddRequestBirthday); FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, PostAndProcessHeaders); + FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyDisabledByAdmin); FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, VerifyResponseBirthday); FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingNoDatatypes); FRIEND_TEST_ALL_PREFIXES(SyncerProtoUtilTest, HandleThrottlingWithDatatypes); -- cgit v1.2.1