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

Side by Side Diff: chrome/common/extensions/sync_helper.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | Annotate | Revision Log
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/common/extensions/sync_helper.h" 5 #include "chrome/common/extensions/sync_helper.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/extensions/api/plugins/plugins_handler.h" 8 #include "chrome/common/extensions/api/plugins/plugins_handler.h"
9 #include "chrome/common/extensions/extension.h"
10 #include "chrome/common/extensions/extension_constants.h" 9 #include "chrome/common/extensions/extension_constants.h"
11 #include "chrome/common/extensions/manifest_url_handler.h" 10 #include "chrome/common/extensions/manifest_url_handler.h"
11 #include "extensions/common/extension.h"
12 #include "extensions/common/manifest.h" 12 #include "extensions/common/manifest.h"
13 13
14 namespace extensions { 14 namespace extensions {
15 namespace sync_helper { 15 namespace sync_helper {
16 16
17 namespace { 17 namespace {
18 18
19 enum SyncType { 19 enum SyncType {
20 SYNC_TYPE_NONE = 0, 20 SYNC_TYPE_NONE = 0,
21 SYNC_TYPE_EXTENSION, 21 SYNC_TYPE_EXTENSION,
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool IsSyncableExtension(const Extension* extension) { 93 bool IsSyncableExtension(const Extension* extension) {
94 return GetSyncType(extension) == SYNC_TYPE_EXTENSION; 94 return GetSyncType(extension) == SYNC_TYPE_EXTENSION;
95 } 95 }
96 96
97 bool IsSyncableApp(const Extension* extension) { 97 bool IsSyncableApp(const Extension* extension) {
98 return GetSyncType(extension) == SYNC_TYPE_APP; 98 return GetSyncType(extension) == SYNC_TYPE_APP;
99 } 99 }
100 100
101 } // namespace sync_helper 101 } // namespace sync_helper
102 } // namespace extensions 102 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698