Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4185)

Unified Diff: chrome/browser/extensions/settings/setting_sync_data.cc

Issue 9460047: sync: remove use of protobuf extensions in protocol to reduce static init overhead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nigori access in testserver Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/settings/setting_sync_data.cc
diff --git a/chrome/browser/extensions/settings/setting_sync_data.cc b/chrome/browser/extensions/settings/setting_sync_data.cc
index 68e62876b1709e1078de07fef5376762c6a3a0b3..43db227d3c8ddcafdeb41d459a8526d8cdbea0ac 100644
--- a/chrome/browser/extensions/settings/setting_sync_data.cc
+++ b/chrome/browser/extensions/settings/setting_sync_data.cc
@@ -8,6 +8,7 @@
#include "base/json/json_writer.h"
#include "chrome/browser/sync/api/sync_data.h"
#include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h"
+#include "chrome/browser/sync/protocol/sync.pb.h"
namespace extensions {
@@ -25,7 +26,7 @@ void SettingSyncData::Init(
SyncChange::SyncChangeType change_type, const SyncData& sync_data) {
DCHECK(!internal_.get());
sync_pb::ExtensionSettingSpecifics specifics =
- sync_data.GetSpecifics().GetExtension(sync_pb::extension_setting);
+ sync_data.GetSpecifics().extension_setting();
Value* value =
base::JSONReader().JsonToValue(specifics.value(), false, false);
if (!value) {

Powered by Google App Engine
This is Rietveld 408576698