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

Side by Side Diff: chrome/browser/extensions/settings/setting_sync_data.cc

Issue 9668028: [Sync] Create new top-level sync/ directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 9 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 #include "chrome/browser/extensions/settings/setting_sync_data.h" 5 #include "chrome/browser/extensions/settings/setting_sync_data.h"
6 6
7 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
8 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
9 #include "chrome/browser/sync/api/sync_data.h" 9 #include "chrome/browser/sync/api/sync_data.h"
10 #include "chrome/browser/sync/protocol/app_setting_specifics.pb.h" 10 #include "sync/protocol/app_setting_specifics.pb.h"
11 #include "chrome/browser/sync/protocol/extension_setting_specifics.pb.h" 11 #include "sync/protocol/extension_setting_specifics.pb.h"
12 #include "chrome/browser/sync/protocol/sync.pb.h" 12 #include "sync/protocol/sync.pb.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 15
16 SettingSyncData::SettingSyncData( 16 SettingSyncData::SettingSyncData(
17 const SyncChange& sync_change) { 17 const SyncChange& sync_change) {
18 Init(sync_change.change_type(), sync_change.sync_data()); 18 Init(sync_change.change_type(), sync_change.sync_data());
19 } 19 }
20 20
21 SettingSyncData::SettingSyncData( 21 SettingSyncData::SettingSyncData(
22 const SyncData& sync_data) { 22 const SyncData& sync_data) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 : change_type_(change_type), 92 : change_type_(change_type),
93 extension_id_(extension_id), 93 extension_id_(extension_id),
94 key_(key), 94 key_(key),
95 value_(value.Pass()) { 95 value_(value.Pass()) {
96 DCHECK(value_.get()); 96 DCHECK(value_.get());
97 } 97 }
98 98
99 SettingSyncData::Internal::~Internal() {} 99 SettingSyncData::Internal::~Internal() {}
100 100
101 } // namespace extensions 101 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_data_unittest.cc ('k') | chrome/browser/extensions/settings/settings_sync_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698