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

Unified Diff: chrome/browser/chromeos/extensions/external_cache.h

Issue 271263002: New test cases for kiosk app crx file cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improvement based on comments. 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/extensions/external_cache.h
diff --git a/chrome/browser/chromeos/extensions/external_cache.h b/chrome/browser/chromeos/extensions/external_cache.h
index 83834a05a1bbd13c0d1455f967533d32ce8b492d..4c0040e72f6f86c861a0e555957c9407c04778dc 100644
--- a/chrome/browser/chromeos/extensions/external_cache.h
+++ b/chrome/browser/chromeos/extensions/external_cache.h
@@ -120,6 +120,13 @@ class ExternalCache : public content::NotificationObserver,
// files will be removed from disk too.
void RemoveExtensions(const std::vector<std::string>& ids);
+ // If extension with |id| exists in the cache, returns |true|, |file_path| and
+ // |version| for the extension. Extension will be marked as used with current
+ // timestamp.
+ bool GetExtension(const std::string& id,
+ base::FilePath* file_path,
+ std::string* version);
+
private:
// Notifies the that the cache has been updated, providing
// extensions loader with an updated list of extensions.

Powered by Google App Engine
This is Rietveld 408576698