Index: chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc |
=================================================================== |
--- chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (revision 246680) |
+++ chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc (working copy) |
@@ -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" |
@@ -70,6 +71,10 @@ |
if (app_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_); |
+ |
extensions::RuntimeEventRouter::DispatchOnRestartRequiredEvent( |
profile_, |
app_id_, |