Send flipperstate to cert downloader
Summary: Add flipperstate to the cert downloader. Reviewed By: jknoxville Differential Revision: D23172851 fbshipit-source-id: f0eb23ec709d656918831c2ee82a6ddb426596e5
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2e98c7f3c7
commit
3c3d76be60
@@ -10,6 +10,8 @@
|
|||||||
#include <functional>
|
#include <functional>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include "FlipperCertificateExchangeMedium.h"
|
#include "FlipperCertificateExchangeMedium.h"
|
||||||
|
#include "FlipperState.h"
|
||||||
|
#include "FlipperStep.h"
|
||||||
namespace facebook {
|
namespace facebook {
|
||||||
namespace flipper {
|
namespace flipper {
|
||||||
|
|
||||||
@@ -44,6 +46,12 @@ class FlipperCertificateProvider {
|
|||||||
* `stop` is called.
|
* `stop` is called.
|
||||||
*/
|
*/
|
||||||
virtual bool shouldResetCertificateFolder() = 0;
|
virtual bool shouldResetCertificateFolder() = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the FlipperState, so that Cert Provider can send debuggin information
|
||||||
|
* to troubleshoot screen.
|
||||||
|
*/
|
||||||
|
virtual void setFlipperState(std::shared_ptr<FlipperState> state) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace flipper
|
} // namespace flipper
|
||||||
|
|||||||
@@ -379,6 +379,7 @@ void FlipperConnectionManagerImpl::requestSignedCertFromFlipper() {
|
|||||||
contextStore_->storeConnectionConfig(config);
|
contextStore_->storeConnectionConfig(config);
|
||||||
}
|
}
|
||||||
if (certProvider_) {
|
if (certProvider_) {
|
||||||
|
certProvider_->setFlipperState(flipperState_);
|
||||||
auto gettingCertFromProvider =
|
auto gettingCertFromProvider =
|
||||||
flipperState_->start("Getting cert from Cert Provider");
|
flipperState_->start("Getting cert from Cert Provider");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user