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

Unified Diff: chrome/common/extensions/api/storage/storage_schema_manifest_handler.h

Issue 47513018: Make the internal storage of policy::Schemas ref counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-4-new-generate
Patch Set: rebase Created 7 years, 1 month 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/common/extensions/api/storage/storage_schema_manifest_handler.h
diff --git a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
index 15bf822b4a9c43dea359f4e8ff1a228c3b25ac65..89e0c28a9aa38e5be1f397b6094f73fcda0aacb1 100644
--- a/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
+++ b/chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
@@ -9,7 +9,7 @@
#include "extensions/common/manifest_handler.h"
namespace policy {
-class SchemaOwner;
+class Schema;
}
namespace extensions {
@@ -22,11 +22,11 @@ class StorageSchemaManifestHandler : public ManifestHandler {
#if defined(ENABLE_CONFIGURATION_POLICY)
// Returns the managed storage schema defined for |extension|.
- // If the schema is invalid then NULL is returned, and the failure reason
- // is stored in |error|.
+ // If the schema is invalid then the Schema returned is invalid too, and
+ // the failure reason is stored in |error|.
// This function does file I/O and must be called on a thread that allows I/O.
- static scoped_ptr<policy::SchemaOwner> GetSchema(const Extension* extension,
- std::string* error);
+ static policy::Schema GetSchema(const Extension* extension,
+ std::string* error);
#endif
private:

Powered by Google App Engine
This is Rietveld 408576698