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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_processor.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
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/api/storage/settings_sync_processor.h" 5 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h"
6 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" 6 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
7 #include "components/sync/api/sync_change_processor.h"
8 #include "components/sync/api/sync_data.h"
9 #include "components/sync/protocol/extension_setting_specifics.pb.h"
7 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
8 #include "extensions/browser/api/storage/settings_namespace.h" 11 #include "extensions/browser/api/storage/settings_namespace.h"
9 #include "sync/api/sync_change_processor.h"
10 #include "sync/api/sync_data.h"
11 #include "sync/protocol/extension_setting_specifics.pb.h"
12 12
13 using content::BrowserThread; 13 using content::BrowserThread;
14 14
15 namespace extensions { 15 namespace extensions {
16 16
17 SettingsSyncProcessor::SettingsSyncProcessor( 17 SettingsSyncProcessor::SettingsSyncProcessor(
18 const std::string& extension_id, 18 const std::string& extension_id,
19 syncer::ModelType type, 19 syncer::ModelType type,
20 syncer::SyncChangeProcessor* sync_processor) 20 syncer::SyncChangeProcessor* sync_processor)
21 : extension_id_(extension_id), 21 : extension_id_(extension_id),
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 for (ValueStoreChangeList::const_iterator i = changes.begin(); 102 for (ValueStoreChangeList::const_iterator i = changes.begin();
103 i != changes.end(); ++i) { 103 i != changes.end(); ++i) {
104 if (i->new_value()) 104 if (i->new_value())
105 synced_keys_.insert(i->key()); 105 synced_keys_.insert(i->key());
106 else 106 else
107 synced_keys_.erase(i->key()); 107 synced_keys_.erase(i->key());
108 } 108 }
109 } 109 }
110 110
111 } // namespace extensions 111 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698