From 85427f71a410e7165c11598ed41eaaa75b8d6acd Mon Sep 17 00:00:00 2001 From: Cynthia Wong Date: Wed, 10 Jun 2009 14:42:42 -0700 Subject: [PATCH] Add a gservices flag to limit the size of protobufs we can gzip --- core/java/android/provider/Settings.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java index 5f3831660d9c0..52cec22864ae0 100644 --- a/core/java/android/provider/Settings.java +++ b/core/java/android/provider/Settings.java @@ -2490,6 +2490,12 @@ public final class Settings { */ public static final String GMAIL_BUFFER_SERVER_RESPONSE = "gmail_buffer_server_response"; + /** + * The maximum size in bytes allowed for the provider to gzip a protocol buffer uploaded to + * the server. + */ + public static final String GMAIL_MAX_GZIP_SIZE = "gmail_max_gzip_size_bytes"; + /** * Controls whether Gmail will discard uphill operations that repeatedly fail. Value must be * an integer where non-zero means true. Defaults to 1.