Add the getFeedURL API for macOS and Windows
This commit is contained in:
parent
ba887dbde7
commit
51687e1bc9
6 changed files with 22 additions and 0 deletions
|
@ -25,9 +25,14 @@ SQRLUpdater* g_updater = nil;
|
|||
namespace {
|
||||
|
||||
bool g_update_available = false;
|
||||
std::string update_url_ = "";
|
||||
|
||||
}
|
||||
|
||||
std::string AutoUpdater::GetFeedURL() {
|
||||
return update_url_;
|
||||
}
|
||||
|
||||
// static
|
||||
void AutoUpdater::SetFeedURL(const std::string& feed,
|
||||
const HeaderMap& requestHeaders) {
|
||||
|
@ -35,6 +40,8 @@ void AutoUpdater::SetFeedURL(const std::string& feed,
|
|||
if (!delegate)
|
||||
return;
|
||||
|
||||
update_url_ = feed;
|
||||
|
||||
NSURL* url = [NSURL URLWithString:base::SysUTF8ToNSString(feed)];
|
||||
NSMutableURLRequest* urlRequest = [NSMutableURLRequest requestWithURL:url];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue