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

Unified Diff: update_attempter.h

Issue 3048008: Add support to update_engine_client for -app_version and -omaha_url. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Don't use ?: shorthand. Created 10 years, 5 months 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 | « omaha_request_params_unittest.cc ('k') | update_attempter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter.h
diff --git a/update_attempter.h b/update_attempter.h
index 269edec3c8d93f425e2ac7450bb42280bf445b6a..3e47969d01ddc39f1b4624f766542f02d809b7de 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -51,7 +51,10 @@ class UpdateAttempter : public ActionProcessorDelegate,
if (utils::FileExists(kUpdateCompletedMarker))
status_ = UPDATE_STATUS_UPDATED_NEED_REBOOT;
}
- void Update();
+ // Checks for update and, if a newer version is available, attempts
+ // to update the system. Non-empty |in_app_version| or
+ // |in_update_url| prevents automatic detection of the parameter.
+ void Update(const std::string& app_version, const std::string& omaha_url);
// ActionProcessorDelegate methods:
void ProcessingDone(const ActionProcessor* processor, ActionExitCode code);
@@ -78,7 +81,10 @@ class UpdateAttempter : public ActionProcessorDelegate,
dbus_service_ = dbus_service;
}
- void CheckForUpdate();
+ // This is the D-Bus service entry point for going through an
+ // update. If the current status is idle invokes Update.
+ void CheckForUpdate(const std::string& app_version,
+ const std::string& omaha_url);
// DownloadActionDelegate method
void BytesReceived(uint64_t bytes_received, uint64_t total);
« no previous file with comments | « omaha_request_params_unittest.cc ('k') | update_attempter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698