| Index: ios/chrome/browser/ui/webui/version_handler.cc
|
| diff --git a/ios/chrome/browser/ui/webui/version_handler.cc b/ios/chrome/browser/ui/webui/version_handler.cc
|
| index fc2d7e0b3a73d75c09cff92a0977b548bef883d7..e670e88a7992ddd38593fe460f32f6294155415a 100644
|
| --- a/ios/chrome/browser/ui/webui/version_handler.cc
|
| +++ b/ios/chrome/browser/ui/webui/version_handler.cc
|
| @@ -4,27 +4,34 @@
|
|
|
| #include "ios/chrome/browser/ui/webui/version_handler.h"
|
|
|
| -#include "base/bind.h"
|
| -#include "base/bind_helpers.h"
|
| -#include "base/values.h"
|
| #include "components/version_ui/version_handler_helper.h"
|
| #include "components/version_ui/version_ui_constants.h"
|
| #include "ios/web/public/webui/web_ui_ios.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
|
|
| -VersionHandler::VersionHandler() {}
|
| +VersionHandler::VersionHandler(
|
| + mojo::InterfaceRequest<mojom::VersionPageHandler> request)
|
| + : binding_(this, std::move(request)) {}
|
|
|
| VersionHandler::~VersionHandler() {}
|
|
|
| -void VersionHandler::RegisterMessages() {
|
| - web_ui()->RegisterMessageCallback(
|
| - version_ui::kRequestVersionInfo,
|
| - base::Bind(&VersionHandler::HandleRequestVersionInfo,
|
| - base::Unretained(this)));
|
| +void VersionHandler::GetFilePaths(const GetFilePathsCallback& callback) {
|
| + NOTREACHED();
|
| }
|
|
|
| -void VersionHandler::HandleRequestVersionInfo(const base::ListValue* args) {
|
| - // Respond with the variations info immediately.
|
| - web_ui()->CallJavascriptFunction(version_ui::kReturnVariationInfo,
|
| - *version_ui::GetVariationsList());
|
| +void VersionHandler::GetFlashVersion(const GetFlashVersionCallback& callback) {
|
| + NOTREACHED();
|
| +}
|
| +
|
| +void VersionHandler::GetVariations(const GetVariationsCallback& callback) {
|
| + std::vector<std::string> variations = version_ui::GetVariations();
|
| + callback.Run(mojo::Array<mojo::String>::From(variations));
|
| +}
|
| +
|
| +void VersionHandler::GetOsVersion(const GetOsVersionCallback& callback) {
|
| + NOTREACHED();
|
| +}
|
| +
|
| +void VersionHandler::GetArcVersion(const GetArcVersionCallback& callback) {
|
| + NOTREACHED();
|
| }
|
|
|