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

Unified Diff: chrome/browser/ui/webui/settings/about_handler.h

Issue 2873193002: Make update over cellular an option for user (Closed)
Patch Set: Make update over cellular an option for user Created 3 years, 7 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
Index: chrome/browser/ui/webui/settings/about_handler.h
diff --git a/chrome/browser/ui/webui/settings/about_handler.h b/chrome/browser/ui/webui/settings/about_handler.h
index 3de70b602ec35d17ddaccd6b69153c64135e8fa3..a7cc00b8336836166f9ba77ffe0a62a3070af36c 100644
--- a/chrome/browser/ui/webui/settings/about_handler.h
+++ b/chrome/browser/ui/webui/settings/about_handler.h
@@ -108,15 +108,24 @@ class AboutHandler : public settings::SettingsPageUIHandler,
// Checks for and applies update, triggered by JS.
void HandleRequestUpdate(const base::ListValue* args);
+ // Checks for and applies update over cellular connection, triggered by JS.
xiyuan 2017/05/11 20:37:26 nit: insert an empty line before
weidongg 2017/05/11 23:50:45 Done.
+ // Target version and size should be included in the list of arguments.
+ void HandleRequestUpdateOverCellular(const base::ListValue* args);
#endif
// Checks for and applies update.
void RequestUpdate();
+ // Checks for and applies update over cellular connection to the given target.
+ void RequestUpdateOverCellular(std::string& target_version,
+ int64_t target_size);
+
// Callback method which forwards status updates to the page.
void SetUpdateStatus(VersionUpdater::Status status,
int progress,
+ const std::string& version,
+ const int64_t size,
const base::string16& fail_message);
#if defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698