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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h

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
Index: chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h b/chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h
new file mode 100644
index 0000000000000000000000000000000000000000..56020398fb94df297d22545dbcaccc6e4c5da9df
--- /dev/null
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_install_gate.h
@@ -0,0 +1,38 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_INSTALL_GATE_H_
+#define CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_INSTALL_GATE_H_
+
+#include "base/macros.h"
+#include "chrome/browser/extensions/install_gate.h"
+
+namespace extensions {
+class Extension;
+class ExtensionRegistry;
+}
+
+class Profile;
+
+namespace chromeos {
+
+class KioskAppUpdateInstallGate : public extensions::InstallGate {
+ public:
+ explicit KioskAppUpdateInstallGate(Profile* profile);
+ ~KioskAppUpdateInstallGate() override;
+
+ // InstallGate:
+ Action ShouldDelay(const extensions::Extension* extension,
+ bool install_immediately) override;
+
+ private:
+ Profile* const profile_;
+ extensions::ExtensionRegistry* const registry_;
+
+ DISALLOW_COPY_AND_ASSIGN(KioskAppUpdateInstallGate);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_KIOSK_APP_UPDATE_INSTALL_GATE_H_

Powered by Google App Engine
This is Rietveld 408576698