Index: chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc |
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc |
index f96eab155d3a98bac57e6e24b6e7d7480a0c87a7..9b2763158b89616cda3c5aaf548a64cd0b212f44 100644 |
--- a/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc |
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc |
@@ -8,6 +8,7 @@ |
#include "chrome/browser/app_mode/app_mode_utils.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/browser_process_platform_part_chromeos.h" |
+#include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
#include "chrome/browser/chromeos/system/automatic_reboot_manager.h" |
#include "chrome/browser/extensions/api/runtime/runtime_api.h" |
#include "chrome/browser/extensions/extension_service.h" |
@@ -71,6 +72,12 @@ void KioskAppUpdateService::OnAppUpdateAvailable( |
if (extension->id() != app_id_) |
return; |
+ // Clears cached app data so that it will be reloaded if update from app |
+ // does not finish in this run. |
+ KioskAppManager::Get()->ClearAppData(app_id_); |
+ KioskAppManager::Get()->UpdateAppDataFromProfile( |
+ app_id_, profile_, extension); |
+ |
extensions::RuntimeEventRouter::DispatchOnRestartRequiredEvent( |
profile_, |
app_id_, |