summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/protocol/proto_enum_conversions.h
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-04 23:33:36 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-04 23:33:36 +0000
commit4557d22bc0b6fe59fb146b08065f91d47d3c9254 (patch)
tree7ef9d789310470d974d3af98ca3c94e611cff8e7 /chrome/browser/sync/protocol/proto_enum_conversions.h
parentb7522682a07d06f417ba596fd3e7822bf22c1ab3 (diff)
downloadchromium_src-4557d22bc0b6fe59fb146b08065f91d47d3c9254.zip
chromium_src-4557d22bc0b6fe59fb146b08065f91d47d3c9254.tar.gz
chromium_src-4557d22bc0b6fe59fb146b08065f91d47d3c9254.tar.bz2
sync: remove use of protobuf extensions in protocol to reduce static init overhead.
Instead, we now use optional fields in EntitySpecifics. Because the tag numbers remain the same, this is a wire-format compatible change. This incurs a (#datatypes * sizeof(void*))*#sync_items memory cost, due to storing extra pointers. In practice, for a typical account on windows this amounts to < 200k, and the static init cost is believed to be greater. Note - upcoming features in protobufs may let us eliminate this extra memory overhead. Also: The testserver tests were broken on ToT due to a bug in _SaveEntry's saving of mtime which is fixed in this patch. TBR=yoz@chromium.org TBR=mnissler@chromium.org TBR=pkasting@chromium.org TBR=georgey@chromium.org BUG=94992, 94925 Review URL: http://codereview.chromium.org/9460047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/sync/protocol/proto_enum_conversions.h')
-rw-r--r--chrome/browser/sync/protocol/proto_enum_conversions.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/sync/protocol/proto_enum_conversions.h b/chrome/browser/sync/protocol/proto_enum_conversions.h
index 47e4772..7722f92 100644
--- a/chrome/browser/sync/protocol/proto_enum_conversions.h
+++ b/chrome/browser/sync/protocol/proto_enum_conversions.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -9,6 +9,7 @@
// Keep this file in sync with the .proto files in this directory.
#include "chrome/browser/sync/protocol/session_specifics.pb.h"
+#include "chrome/browser/sync/protocol/sync.pb.h"
// Utility functions to get the string equivalent for some sync proto
// enums.