Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/Updater.cpp

Issue 11376067: Fix updating (Closed)
Patch Set: Created Aug. 8, 2013, 9:56 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/engine/Main.cpp ('K') | « src/engine/Updater.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/engine/Updater.cpp
===================================================================
--- a/src/engine/Updater.cpp
+++ b/src/engine/Updater.cpp
@@ -76,11 +76,16 @@
}
}
-Updater::Updater(AdblockPlus::JsEnginePtr jsEngine, const std::string& url)
- : jsEngine(jsEngine), url(url), tempFile(GetAppDataPath() + L"\\update.msi")
+Updater::Updater(AdblockPlus::JsEnginePtr jsEngine)
+ : jsEngine(jsEngine), tempFile(GetAppDataPath() + L"\\update.msi")
{
}
+void Updater::SetUrl(const std::string& url)
+{
+ this->url = url;
+}
+
void Updater::Update()
{
Debug("Downloading update: " + url);
« src/engine/Main.cpp ('K') | « src/engine/Updater.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld