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

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

Issue 323843003: Add a do_not_sync pref to ExtensionPrefs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comments in #2 Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | extensions/browser/extension_prefs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 6 #define CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
7 7
8 namespace extensions { 8 namespace extensions {
9 9
10 class Extension; 10 class Extension;
11 11
12 namespace sync_helper { 12 namespace sync_helper {
13 13
14 // NOTE: The check in the functions here only considers the data in extension
15 // itself, not the environment it is in. To determine whether an extension
16 // should be synced, you probably want to use util::ShoudSyncExtension and
17 // util::ShouldSyncApp.
18
14 // Returns true if the extension should be synced. 19 // Returns true if the extension should be synced.
15 bool IsSyncable(const Extension* extension); 20 bool IsSyncable(const Extension* extension);
16 21
17 // Returns true if the extension uses the sync bucket of this type. 22 // Returns true if the extension uses the sync bucket of this type.
18 bool IsSyncableExtension(const Extension* extension); 23 bool IsSyncableExtension(const Extension* extension);
19 bool IsSyncableApp(const Extension* extension); 24 bool IsSyncableApp(const Extension* extension);
20 25
21 } // namespace sync_helper 26 } // namespace sync_helper
22 } // namespace extensions 27 } // namespace extensions
23 28
24 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_ 29 #endif // CHROME_COMMON_EXTENSIONS_SYNC_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_util.cc ('k') | extensions/browser/extension_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698