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

Side by Side Diff: extensions/browser/extension_prefs.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/common/extensions/sync_helper.h ('k') | extensions/browser/extension_prefs.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 6 #define EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 bool WasInstalledByDefault(const std::string& extension_id) const; 527 bool WasInstalledByDefault(const std::string& extension_id) const;
528 528
529 // Returns true if the extension was installed as an oem app. 529 // Returns true if the extension was installed as an oem app.
530 bool WasInstalledByOem(const std::string& extension_id) const; 530 bool WasInstalledByOem(const std::string& extension_id) const;
531 531
532 // Helper method to acquire the installation time of an extension. 532 // Helper method to acquire the installation time of an extension.
533 // Returns base::Time() if the installation time could not be parsed or 533 // Returns base::Time() if the installation time could not be parsed or
534 // found. 534 // found.
535 base::Time GetInstallTime(const std::string& extension_id) const; 535 base::Time GetInstallTime(const std::string& extension_id) const;
536 536
537 // Returns true if the extension should not be synced.
538 bool DoNotSync(const std::string& extension_id) const;
539
537 // Gets/sets the last launch time of an extension. 540 // Gets/sets the last launch time of an extension.
538 base::Time GetLastLaunchTime(const std::string& extension_id) const; 541 base::Time GetLastLaunchTime(const std::string& extension_id) const;
539 void SetLastLaunchTime(const std::string& extension_id, 542 void SetLastLaunchTime(const std::string& extension_id,
540 const base::Time& time); 543 const base::Time& time);
541 544
542 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 545 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
543 546
544 bool extensions_disabled() const { return extensions_disabled_; } 547 bool extensions_disabled() const { return extensions_disabled_; }
545 548
546 // The underlying PrefService. 549 // The underlying PrefService.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 bool extensions_disabled_; 730 bool extensions_disabled_;
728 731
729 ObserverList<ExtensionPrefsObserver> observer_list_; 732 ObserverList<ExtensionPrefsObserver> observer_list_;
730 733
731 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs); 734 DISALLOW_COPY_AND_ASSIGN(ExtensionPrefs);
732 }; 735 };
733 736
734 } // namespace extensions 737 } // namespace extensions
735 738
736 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_ 739 #endif // EXTENSIONS_BROWSER_EXTENSION_PREFS_H_
OLDNEW
« no previous file with comments | « chrome/common/extensions/sync_helper.h ('k') | extensions/browser/extension_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698