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

Side by Side Diff: chrome/browser/extensions/api/storage/syncable_settings_storage.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/syncable_settings_storage.h" 5 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h" 10 #include "chrome/browser/extensions/api/storage/settings_sync_processor.h"
11 #include "chrome/browser/extensions/api/storage/settings_sync_util.h" 11 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
12 #include "components/sync/api/sync_data.h"
13 #include "components/sync/protocol/extension_setting_specifics.pb.h"
12 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
13 #include "extensions/browser/api/storage/settings_namespace.h" 15 #include "extensions/browser/api/storage/settings_namespace.h"
14 #include "sync/api/sync_data.h"
15 #include "sync/protocol/extension_setting_specifics.pb.h"
16 16
17 using content::BrowserThread; 17 using content::BrowserThread;
18 18
19 namespace extensions { 19 namespace extensions {
20 20
21 SyncableSettingsStorage::SyncableSettingsStorage( 21 SyncableSettingsStorage::SyncableSettingsStorage(
22 const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>& 22 const scoped_refptr<base::ObserverListThreadSafe<SettingsObserver>>&
23 observers, 23 observers,
24 const std::string& extension_id, 24 const std::string& extension_id,
25 ValueStore* delegate, 25 ValueStore* delegate,
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 FROM_HERE, syncer::SyncError::DATATYPE_ERROR, 397 FROM_HERE, syncer::SyncError::DATATYPE_ERROR,
398 base::StringPrintf("Error pushing sync remove to local settings: %s", 398 base::StringPrintf("Error pushing sync remove to local settings: %s",
399 result->status().message.c_str()), 399 result->status().message.c_str()),
400 sync_processor_->type()); 400 sync_processor_->type());
401 } 401 }
402 changes->push_back(ValueStoreChange(key, std::move(old_value), nullptr)); 402 changes->push_back(ValueStoreChange(key, std::move(old_value), nullptr));
403 return syncer::SyncError(); 403 return syncer::SyncError();
404 } 404 }
405 405
406 } // namespace extensions 406 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/storage/syncable_settings_storage.h ('k') | chrome/browser/extensions/app_process_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698