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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_util.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_util.h" 5 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" 9 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
10 #include "components/sync/protocol/app_setting_specifics.pb.h"
11 #include "components/sync/protocol/extension_setting_specifics.pb.h"
12 #include "components/sync/protocol/sync.pb.h"
10 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
11 #include "extensions/browser/api/storage/storage_frontend.h" 14 #include "extensions/browser/api/storage/storage_frontend.h"
12 #include "sync/protocol/app_setting_specifics.pb.h"
13 #include "sync/protocol/extension_setting_specifics.pb.h"
14 #include "sync/protocol/sync.pb.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 namespace settings_sync_util { 20 namespace settings_sync_util {
21 21
22 namespace { 22 namespace {
23 23
24 void PopulateExtensionSettingSpecifics( 24 void PopulateExtensionSettingSpecifics(
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 DCHECK(type == syncer::APP_SETTINGS || type == syncer::EXTENSION_SETTINGS); 116 DCHECK(type == syncer::APP_SETTINGS || type == syncer::EXTENSION_SETTINGS);
117 StorageFrontend* frontend = StorageFrontend::Get(context); 117 StorageFrontend* frontend = StorageFrontend::Get(context);
118 SyncValueStoreCache* sync_cache = static_cast<SyncValueStoreCache*>( 118 SyncValueStoreCache* sync_cache = static_cast<SyncValueStoreCache*>(
119 frontend->GetValueStoreCache(settings_namespace::SYNC)); 119 frontend->GetValueStoreCache(settings_namespace::SYNC));
120 return sync_cache->GetSyncableService(type); 120 return sync_cache->GetSyncableService(type);
121 } 121 }
122 122
123 } // namespace settings_sync_util 123 } // namespace settings_sync_util
124 124
125 } // namespace extensions 125 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698