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

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

Issue 353493002: Apps&Extensions for supervised users: Add Extension::WAS_INSTALLED_BY_CUSTODIAN flag and proto entry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update test Created 6 years, 6 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 544
545 base::DictionaryValue* ExtensionSpecificsToValue( 545 base::DictionaryValue* ExtensionSpecificsToValue(
546 const sync_pb::ExtensionSpecifics& proto) { 546 const sync_pb::ExtensionSpecifics& proto) {
547 base::DictionaryValue* value = new base::DictionaryValue(); 547 base::DictionaryValue* value = new base::DictionaryValue();
548 SET_STR(id); 548 SET_STR(id);
549 SET_STR(version); 549 SET_STR(version);
550 SET_STR(update_url); 550 SET_STR(update_url);
551 SET_BOOL(enabled); 551 SET_BOOL(enabled);
552 SET_BOOL(incognito_enabled); 552 SET_BOOL(incognito_enabled);
553 SET_BOOL(remote_install); 553 SET_BOOL(remote_install);
554 SET_BOOL(installed_by_custodian);
554 SET_STR(name); 555 SET_STR(name);
555 return value; 556 return value;
556 } 557 }
557 558
558 namespace { 559 namespace {
559 base::DictionaryValue* FaviconDataToValue( 560 base::DictionaryValue* FaviconDataToValue(
560 const sync_pb::FaviconData& proto) { 561 const sync_pb::FaviconData& proto) {
561 base::DictionaryValue* value = new base::DictionaryValue(); 562 base::DictionaryValue* value = new base::DictionaryValue();
562 SET_BYTES(favicon); 563 SET_BYTES(favicon);
563 SET_INT32(width); 564 SET_INT32(width);
(...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 #undef SET_BYTES 1110 #undef SET_BYTES
1110 #undef SET_INT32 1111 #undef SET_INT32
1111 #undef SET_INT64 1112 #undef SET_INT64
1112 #undef SET_INT64_REP 1113 #undef SET_INT64_REP
1113 #undef SET_STR 1114 #undef SET_STR
1114 #undef SET_STR_REP 1115 #undef SET_STR_REP
1115 1116
1116 #undef SET_FIELD 1117 #undef SET_FIELD
1117 1118
1118 } // namespace syncer 1119 } // namespace syncer
OLDNEW
« extensions/common/extension.h ('K') | « sync/protocol/extension_specifics.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698