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

Unified Diff: chrome/browser/extensions/extension_system_impl.cc

Issue 1869483002: kiosk: Defer app update until platform matches (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for comments from jenny Created 4 years, 8 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
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_system_impl.cc
diff --git a/chrome/browser/extensions/extension_system_impl.cc b/chrome/browser/extensions/extension_system_impl.cc
index 1fd0800fc2d15352d54637781a7129c579c1ee3d..365ef9139ff347699000ad52c8dc71eb1dfdb349 100644
--- a/chrome/browser/extensions/extension_system_impl.cc
+++ b/chrome/browser/extensions/extension_system_impl.cc
@@ -64,6 +64,7 @@
#if defined(OS_CHROMEOS)
#include "chrome/browser/app_mode/app_mode_utils.h"
+#include "chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h"
#include "chrome/browser/chromeos/extensions/device_local_account_management_policy_provider.h"
#include "chrome/browser/chromeos/policy/device_local_account.h"
#include "chromeos/chromeos_switches.h"
@@ -154,6 +155,15 @@ void ExtensionSystemImpl::Shared::InitInstallGates() {
extension_service_->RegisterInstallGate(
ExtensionPrefs::DELAY_REASON_WAIT_FOR_IMPORTS,
extension_service_->shared_module_service());
+#if defined(OS_CHROMEOS)
+ if (chrome::IsRunningInForcedAppMode()) {
+ kiosk_app_update_install_gate_.reset(
+ new chromeos::KioskAppUpdateInstallGate(profile_));
+ extension_service_->RegisterInstallGate(
+ ExtensionPrefs::DELAY_REASON_WAIT_FOR_OS_UPDATE,
+ kiosk_app_update_install_gate_.get());
+ }
+#endif
}
void ExtensionSystemImpl::Shared::Init(bool extensions_enabled) {
« no previous file with comments | « chrome/browser/extensions/extension_system_impl.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698