OLD | NEW |
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 "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_system.h" | |
10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/themes/theme_service.h" | 10 #include "chrome/browser/themes/theme_service.h" |
12 #include "chrome/common/extensions/manifest_url_handler.h" | 11 #include "chrome/common/extensions/manifest_url_handler.h" |
13 #include "chrome/common/extensions/sync_helper.h" | 12 #include "chrome/common/extensions/sync_helper.h" |
| 13 #include "extensions/browser/extension_system.h" |
14 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
15 #include "sync/protocol/sync.pb.h" | 15 #include "sync/protocol/sync.pb.h" |
16 #include "sync/protocol/theme_specifics.pb.h" | 16 #include "sync/protocol/theme_specifics.pb.h" |
17 | 17 |
18 using std::string; | 18 using std::string; |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 bool IsTheme(const extensions::Extension* extension) { | 22 bool IsTheme(const extensions::Extension* extension) { |
23 return extension->is_theme(); | 23 return extension->is_theme(); |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 syncer::SyncChange(FROM_HERE, change_type, | 334 syncer::SyncChange(FROM_HERE, change_type, |
335 syncer::SyncData::CreateLocalData( | 335 syncer::SyncData::CreateLocalData( |
336 kCurrentThemeClientTag, kCurrentThemeNodeTitle, | 336 kCurrentThemeClientTag, kCurrentThemeNodeTitle, |
337 entity_specifics))); | 337 entity_specifics))); |
338 | 338 |
339 DVLOG(1) << "Update theme specifics from current theme: " | 339 DVLOG(1) << "Update theme specifics from current theme: " |
340 << changes.back().ToString(); | 340 << changes.back().ToString(); |
341 | 341 |
342 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes); | 342 return sync_processor_->ProcessSyncChanges(FROM_HERE, changes); |
343 } | 343 } |
OLD | NEW |