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

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

Issue 2639033002: Restore auto-launched state on kiosk restart within session (Closed)
Patch Set: Attempt No 2 Created 3 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
« 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 7aac2e7f43f19b42f45a440697558ff2669ee2f2..f057d111d0186b77814c77a4f0bc0c8e6ed735f4 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
@@ -26,6 +26,10 @@ class GURL;
class PrefRegistrySimple;
class Profile;
+namespace base {
+class CommandLine;
+}
+
namespace extensions {
class Extension;
class ExternalLoader;
@@ -317,6 +321,15 @@ class KioskAppManager : public KioskAppDataDelegate,
// Returns the auto launch delay.
base::TimeDelta GetAutoLaunchDelay() const;
+ // Gets list of user switches that should be passed to Chrome in case current
+ // session has to be restored, e.g. in case of a crash. The switches will be
+ // returned as |switches| command line arguments.
+ // Returns whether the set of switches would have to be changed in respect to
+ // the current set of switches - if that is not the case |switches| might not
+ // get populated.
+ bool GetSwitchesForSessionRestore(const std::string& app_id,
+ base::CommandLine* switches);
+
// True if machine ownership is already established.
bool ownership_established_;
std::vector<std::unique_ptr<KioskAppData>> apps_;
« 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