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

Unified Diff: chrome/browser/extensions/install_verifier.h

Issue 93513006: Allow re-enabling of DISABLE_NOT_VERIFIED extensions if appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a few nits Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/install_verifier.h
diff --git a/chrome/browser/extensions/install_verifier.h b/chrome/browser/extensions/install_verifier.h
index 1131e384f6014b94d8b5a46a0f29cc7029f8290c..a7941b81a0dba978431ad52427c9f554e4c0b0e6 100644
--- a/chrome/browser/extensions/install_verifier.h
+++ b/chrome/browser/extensions/install_verifier.h
@@ -45,13 +45,17 @@ class InstallVerifier : public ManagementPolicy::Provider {
// validating the stored signature.
void Init();
+ // Do we need to be bootstrapped? (i.e. do we have a signature already). If
+ // this is true, then consumers of this class should use Add/AddMany to get
+ // an initial one so that MustRemainDisabled can actually check against it.
+ bool NeedsBootstrap();
+
// A callback for indicating success/failure of adding new ids.
typedef base::Callback<void(bool)> AddResultCallback;
// Try adding a new |id| (or set of ids) to the list of verified ids. When
- // this process is finished |callback| will be run with success/failure. In
- // case of success, subsequent calls to IsVerified will begin returning true
- // for |id|.
+ // this process is finished |callback| will be run with success/failure of
+ // the signature request (not necessarily whether the ids were verified).
void Add(const std::string& id, const AddResultCallback& callback);
void AddMany(const ExtensionIdSet& ids,
const AddResultCallback& callback);
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/install_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698