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

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

Issue 300843013: Install and launch kiosk app from cached crx file at start up. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_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 7a9fe670717e657fafc2c94aacf44af4e7e58c44..501cf7a7448ab7c10954670d62093a676eb5b84a 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_manager.h
@@ -150,6 +150,20 @@ class KioskAppManager : public KioskAppDataDelegate,
Profile* profile,
const extensions::Extension* app);
+ // Gets the file path and version information of the cached crx with |app_id|.
+ // Returns true if the app is found in cache.
+ bool GetCachedCrx(const std::string& app_id,
+ base::FilePath* file_path,
+ std::string* version);
+
+ // Returns true if the extension with |id| is pending for caching crx file
+ // for the first time.
+ bool IsExtensionPendingForCache(const std::string& id);
+
+ // Returns true if the extensions with |id| is pending for update check.
+ // The crx file fo the extension has been cached previously.
+ bool IsExtensionPendingForUpdateCheck(const std::string& id);
+
void AddObserver(KioskAppManagerObserver* observer);
void RemoveObserver(KioskAppManagerObserver* observer);
@@ -176,7 +190,7 @@ class KioskAppManager : public KioskAppDataDelegate,
const KioskAppData* GetAppData(const std::string& app_id) const;
KioskAppData* GetAppDataMutable(const std::string& app_id);
- // Update app data |apps_| based on CrosSettings.
+ // Updates app data |apps_| based on CrosSettings.
void UpdateAppData();
// KioskAppDataDelegate overrides:
@@ -214,10 +228,6 @@ class KioskAppManager : public KioskAppDataDelegate,
void GetCrxCacheDir(base::FilePath* cache_dir);
- bool GetCachedCrx(const std::string& app_id,
- base::FilePath* file_path,
- std::string* version);
-
// True if machine ownership is already established.
bool ownership_established_;
ScopedVector<KioskAppData> apps_;

Powered by Google App Engine
This is Rietveld 408576698