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

Side by Side Diff: chrome/browser/extensions/extension_sync_service.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. Created 4 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extension_sync_service.h" 5 #include "chrome/browser/extensions/extension_sync_service.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/extensions/bookmark_app_helper.h" 11 #include "chrome/browser/extensions/bookmark_app_helper.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_sync_data.h" 13 #include "chrome/browser/extensions/extension_sync_data.h"
14 #include "chrome/browser/extensions/extension_sync_service_factory.h" 14 #include "chrome/browser/extensions/extension_sync_service_factory.h"
15 #include "chrome/browser/extensions/extension_util.h" 15 #include "chrome/browser/extensions/extension_util.h"
16 #include "chrome/browser/extensions/launch_util.h" 16 #include "chrome/browser/extensions/launch_util.h"
17 #include "chrome/browser/extensions/scripting_permissions_modifier.h" 17 #include "chrome/browser/extensions/scripting_permissions_modifier.h"
18 #include "chrome/browser/profiles/profile.h" 18 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/sync/glue/sync_start_util.h" 19 #include "chrome/browser/sync/glue/sync_start_util.h"
20 #include "chrome/common/extensions/extension_constants.h" 20 #include "chrome/common/extensions/extension_constants.h"
21 #include "chrome/common/extensions/sync_helper.h" 21 #include "chrome/common/extensions/sync_helper.h"
22 #include "chrome/common/web_application_info.h" 22 #include "chrome/common/web_application_info.h"
23 #include "components/sync/api/sync_change.h" 23 #include "components/sync/model/sync_change.h"
24 #include "components/sync/api/sync_error_factory.h" 24 #include "components/sync/model/sync_error_factory.h"
25 #include "extensions/browser/app_sorting.h" 25 #include "extensions/browser/app_sorting.h"
26 #include "extensions/browser/extension_prefs.h" 26 #include "extensions/browser/extension_prefs.h"
27 #include "extensions/browser/extension_registry.h" 27 #include "extensions/browser/extension_registry.h"
28 #include "extensions/browser/extension_system.h" 28 #include "extensions/browser/extension_system.h"
29 #include "extensions/browser/extension_util.h" 29 #include "extensions/browser/extension_util.h"
30 #include "extensions/browser/uninstall_reason.h" 30 #include "extensions/browser/uninstall_reason.h"
31 #include "extensions/common/extension.h" 31 #include "extensions/common/extension.h"
32 #include "extensions/common/extension_set.h" 32 #include "extensions/common/extension_set.h"
33 #include "extensions/common/image_util.h" 33 #include "extensions/common/image_util.h"
34 #include "extensions/common/permissions/permission_message_provider.h" 34 #include "extensions/common/permissions/permission_message_provider.h"
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 sync_data_list->push_back(CreateSyncData(*extension)); 713 sync_data_list->push_back(CreateSyncData(*extension));
714 } 714 }
715 } 715 }
716 } 716 }
717 717
718 bool ExtensionSyncService::ShouldSync(const Extension& extension) const { 718 bool ExtensionSyncService::ShouldSync(const Extension& extension) const {
719 // Themes are handled by the ThemeSyncableService. 719 // Themes are handled by the ThemeSyncableService.
720 return extensions::util::ShouldSync(&extension, profile_) && 720 return extensions::util::ShouldSync(&extension, profile_) &&
721 !extension.is_theme(); 721 !extension.is_theme();
722 } 722 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698