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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 264763002: Support remote installation of extensions and apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add a first test, fix a bug Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_value_conversions.h" 7 #include "sync/protocol/proto_value_conversions.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 } 534 }
535 535
536 base::DictionaryValue* ExtensionSpecificsToValue( 536 base::DictionaryValue* ExtensionSpecificsToValue(
537 const sync_pb::ExtensionSpecifics& proto) { 537 const sync_pb::ExtensionSpecifics& proto) {
538 base::DictionaryValue* value = new base::DictionaryValue(); 538 base::DictionaryValue* value = new base::DictionaryValue();
539 SET_STR(id); 539 SET_STR(id);
540 SET_STR(version); 540 SET_STR(version);
541 SET_STR(update_url); 541 SET_STR(update_url);
542 SET_BOOL(enabled); 542 SET_BOOL(enabled);
543 SET_BOOL(incognito_enabled); 543 SET_BOOL(incognito_enabled);
544 SET_BOOL(remote_install);
544 SET_STR(name); 545 SET_STR(name);
545 return value; 546 return value;
546 } 547 }
547 548
548 namespace { 549 namespace {
549 base::DictionaryValue* FaviconDataToValue( 550 base::DictionaryValue* FaviconDataToValue(
550 const sync_pb::FaviconData& proto) { 551 const sync_pb::FaviconData& proto) {
551 base::DictionaryValue* value = new base::DictionaryValue(); 552 base::DictionaryValue* value = new base::DictionaryValue();
552 SET_BYTES(favicon); 553 SET_BYTES(favicon);
553 SET_INT32(width); 554 SET_INT32(width);
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 #undef SET_BYTES 1096 #undef SET_BYTES
1096 #undef SET_INT32 1097 #undef SET_INT32
1097 #undef SET_INT64 1098 #undef SET_INT64
1098 #undef SET_INT64_REP 1099 #undef SET_INT64_REP
1099 #undef SET_STR 1100 #undef SET_STR
1100 #undef SET_STR_REP 1101 #undef SET_STR_REP
1101 1102
1102 #undef SET_FIELD 1103 #undef SET_FIELD
1103 1104
1104 } // namespace syncer 1105 } // namespace syncer
OLDNEW
« sync/protocol/extension_specifics.proto ('K') | « sync/protocol/extension_specifics.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698