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

Side by Side Diff: chrome/browser/themes/theme_syncable_service.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/themes/theme_syncable_service.h" 5 #include "chrome/browser/themes/theme_syncable_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8
8 #include <utility> 9 #include <utility>
9 10
10 #include "base/strings/stringprintf.h" 11 #include "base/strings/stringprintf.h"
11 #include "base/version.h" 12 #include "base/version.h"
12 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/themes/theme_service.h" 15 #include "chrome/browser/themes/theme_service.h"
15 #include "chrome/common/extensions/sync_helper.h" 16 #include "chrome/common/extensions/sync_helper.h"
17 #include "components/sync/protocol/sync.pb.h"
18 #include "components/sync/protocol/theme_specifics.pb.h"
16 #include "extensions/browser/extension_prefs.h" 19 #include "extensions/browser/extension_prefs.h"
17 #include "extensions/browser/extension_system.h" 20 #include "extensions/browser/extension_system.h"
18 #include "extensions/common/extension.h" 21 #include "extensions/common/extension.h"
19 #include "extensions/common/manifest_url_handlers.h" 22 #include "extensions/common/manifest_url_handlers.h"
20 #include "sync/protocol/sync.pb.h"
21 #include "sync/protocol/theme_specifics.pb.h"
22 23
23 using std::string; 24 using std::string;
24 25
25 namespace { 26 namespace {
26 27
27 bool IsTheme(const extensions::Extension* extension) { 28 bool IsTheme(const extensions::Extension* extension) {
28 return extension->is_theme(); 29 return extension->is_theme();
29 } 30 }
30 31
31 } // namespace 32 } // namespace
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 syncer::SyncChange(FROM_HERE, change_type, 339 syncer::SyncChange(FROM_HERE, change_type,
339 syncer::SyncData::CreateLocalData( 340 syncer::SyncData::CreateLocalData(
340 kCurrentThemeClientTag, kCurrentThemeNodeTitle, 341 kCurrentThemeClientTag, kCurrentThemeNodeTitle,
341 entity_specifics))); 342 entity_specifics)));
342 343
343 DVLOG(1) << "Update theme specifics from current theme: " 344 DVLOG(1) << "Update theme specifics from current theme: "
344 << changes.back().ToString(); 345 << changes.back().ToString();
345 346
346 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes); 347 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes);
347 } 348 }
OLDNEW
« no previous file with comments | « chrome/browser/themes/theme_syncable_service.h ('k') | chrome/browser/themes/theme_syncable_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698