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

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: merged with latest trunk 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
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..32cc9729fb5394b5a984f324739cc9f303ecd553 100644
--- a/chrome/browser/extensions/install_verifier.h
+++ b/chrome/browser/extensions/install_verifier.h
@@ -45,13 +45,15 @@ 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).
+ 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);

Powered by Google App Engine
This is Rietveld 408576698