| Index: chrome/browser/ui/webui/options/about_page_handler.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/options/about_page_handler.cc (revision 82505)
|
| +++ chrome/browser/ui/webui/options/about_page_handler.cc (working copy)
|
| @@ -108,6 +108,7 @@
|
|
|
| static OptionsStringResource resources[] = {
|
| #if defined (OS_CHROMEOS)
|
| + { "firmware", IDS_ABOUT_PAGE_FIRMWARE },
|
| { "product", IDS_PRODUCT_OS_NAME },
|
| { "os", IDS_PRODUCT_OS_NAME },
|
| { "loading", IDS_ABOUT_PAGE_LOADING },
|
| @@ -275,6 +276,8 @@
|
| loader_.GetVersion(&consumer_,
|
| NewCallback(this, &AboutPageHandler::OnOSVersion),
|
| chromeos::VersionLoader::VERSION_FULL);
|
| + loader_.GetFirmware(&consumer_,
|
| + NewCallback(this, &AboutPageHandler::OnOSFirmware));
|
|
|
| chromeos::UpdateLibrary* update_library =
|
| chromeos::CrosLibrary::Get()->GetUpdateLibrary();
|
| @@ -419,6 +422,15 @@
|
| }
|
| }
|
|
|
| +void AboutPageHandler::OnOSFirmware(chromeos::VersionLoader::Handle handle,
|
| + std::string firmware) {
|
| + if (firmware.size()) {
|
| + scoped_ptr<Value> firmware_string(Value::CreateStringValue(firmware));
|
| + web_ui_->CallJavascriptFunction("AboutPage.updateOSFirmwareCallback",
|
| + *firmware_string);
|
| + }
|
| +}
|
| +
|
| // Callback from UpdateEngine with channel information.
|
| // static
|
| void AboutPageHandler::UpdateSelectedChannel(void* user_data,
|
|
|