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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_service.cc

Issue 141803014: Merge 244632 "kiosk: Do update check during launch." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 6 years, 11 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/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_,

Powered by Google App Engine
This is Rietveld 408576698