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

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

Issue 907533004: [Extensions] Sync the 'allowed scripting on all urls' preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « sync/protocol/extension_specifics.proto ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 base::DictionaryValue* ExtensionSpecificsToValue( 453 base::DictionaryValue* ExtensionSpecificsToValue(
454 const sync_pb::ExtensionSpecifics& proto) { 454 const sync_pb::ExtensionSpecifics& proto) {
455 base::DictionaryValue* value = new base::DictionaryValue(); 455 base::DictionaryValue* value = new base::DictionaryValue();
456 SET_STR(id); 456 SET_STR(id);
457 SET_STR(version); 457 SET_STR(version);
458 SET_STR(update_url); 458 SET_STR(update_url);
459 SET_BOOL(enabled); 459 SET_BOOL(enabled);
460 SET_BOOL(incognito_enabled); 460 SET_BOOL(incognito_enabled);
461 SET_BOOL(remote_install); 461 SET_BOOL(remote_install);
462 SET_BOOL(installed_by_custodian); 462 SET_BOOL(installed_by_custodian);
463 SET_BOOL(all_urls_enabled);
463 SET_STR(name); 464 SET_STR(name);
464 return value; 465 return value;
465 } 466 }
466 467
467 namespace { 468 namespace {
468 base::DictionaryValue* FaviconDataToValue( 469 base::DictionaryValue* FaviconDataToValue(
469 const sync_pb::FaviconData& proto) { 470 const sync_pb::FaviconData& proto) {
470 base::DictionaryValue* value = new base::DictionaryValue(); 471 base::DictionaryValue* value = new base::DictionaryValue();
471 SET_BYTES(favicon); 472 SET_BYTES(favicon);
472 SET_INT32(width); 473 SET_INT32(width);
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 #undef SET_BYTES 1064 #undef SET_BYTES
1064 #undef SET_INT32 1065 #undef SET_INT32
1065 #undef SET_INT64 1066 #undef SET_INT64
1066 #undef SET_INT64_REP 1067 #undef SET_INT64_REP
1067 #undef SET_STR 1068 #undef SET_STR
1068 #undef SET_STR_REP 1069 #undef SET_STR_REP
1069 1070
1070 #undef SET_FIELD 1071 #undef SET_FIELD
1071 1072
1072 } // namespace syncer 1073 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/extension_specifics.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698