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

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

Issue 900553006: Updated KioskAppManager to track whether an app was auto-launched. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review feedback Created 5 years, 10 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 | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/kiosk_app_manager.h
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_manager.h b/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
index 0084d54d11138eed116d3c67e725823b5a3fa87b..4d4944dab67eb9d6805bd4f8a31400bf9ce53990 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
@@ -59,7 +59,9 @@ class KioskAppManager : public KioskAppDataDelegate,
// Struct to hold app info returned from GetApps() call.
struct App {
- App(const KioskAppData& data, bool is_extension_pending);
+ App(const KioskAppData& data,
+ bool is_extension_pending,
+ bool was_auto_launched_with_zero_delay);
App();
~App();
@@ -68,6 +70,7 @@ class KioskAppManager : public KioskAppDataDelegate,
std::string name;
gfx::ImageSkia icon;
bool is_loading;
+ bool was_auto_launched_with_zero_delay;
};
typedef std::vector<App> Apps;
@@ -123,6 +126,9 @@ class KioskAppManager : public KioskAppDataDelegate,
// Returns true if owner/policy enabled auto launch.
bool IsAutoLaunchEnabled() const;
+ // Returns true if current app was auto launched with zero delay.
+ bool IsCurrentAppAutoLaunchedWithZeroDelay() const;
+
// Enable auto launch setter.
void SetEnableAutoLaunch(bool value);
@@ -195,6 +201,12 @@ class KioskAppManager : public KioskAppDataDelegate,
bool external_loader_created() const { return external_loader_created_; }
+ // Notifies the KioskAppManager that a given app was auto-launched
+ // automatically with no delay on startup. Certain privacy-sensitive
+ // kiosk-mode behavior (such as network reporting) is only enabled for
+ // kiosk apps that are immediately auto-launched on startup.
+ void SetAppWasAutoLaunchedWithZeroDelay(const std::string& app_id);
+
private:
friend struct base::DefaultLazyInstanceTraits<KioskAppManager>;
friend struct base::DefaultDeleter<KioskAppManager>;
@@ -261,6 +273,7 @@ class KioskAppManager : public KioskAppDataDelegate,
bool ownership_established_;
ScopedVector<KioskAppData> apps_;
std::string auto_launch_app_id_;
+ std::string currently_auto_launched_with_zero_delay_app_;
ObserverList<KioskAppManagerObserver, true> observers_;
scoped_ptr<CrosSettings::ObserverSubscription>
« no previous file with comments | « no previous file | chrome/browser/chromeos/app_mode/kiosk_app_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698