diff options
author | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 17:00:01 +0000 |
---|---|---|
committer | bryeung@chromium.org <bryeung@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-11 17:00:01 +0000 |
commit | 9f01b0b8254c0675d8014b55f1c5705593fbc0ce (patch) | |
tree | 419a5d5a8f0df90482398055769837eef8d1ef77 /tools/json_schema_compiler/json_schema.py | |
parent | 794a2f885212fab9b117371d8da41b45e64e942b (diff) | |
download | chromium_src-9f01b0b8254c0675d8014b55f1c5705593fbc0ce.zip chromium_src-9f01b0b8254c0675d8014b55f1c5705593fbc0ce.tar.gz chromium_src-9f01b0b8254c0675d8014b55f1c5705593fbc0ce.tar.bz2 |
Make all extension api types fully qualified.
BUG=123073
TEST= (unit_tests --gtest_filter=ExtensionAPI) && (browser_tests --gtest_filter=ExtensionApiTest)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=136296
Review URL: https://chromiumcodereview.appspot.com/10367002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136588 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/json_schema.py')
-rw-r--r-- | tools/json_schema_compiler/json_schema.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/json_schema_compiler/json_schema.py b/tools/json_schema_compiler/json_schema.py index f51cece..636f837 100644 --- a/tools/json_schema_compiler/json_schema.py +++ b/tools/json_schema_compiler/json_schema.py @@ -10,6 +10,7 @@ import sys _script_path = os.path.realpath(__file__) sys.path.insert(0, os.path.normpath(_script_path + "/../../")) import json_comment_eater +import schema_util def DeleteNocompileNodes(item): def HasNocompile(thing): @@ -32,9 +33,10 @@ def DeleteNocompileNodes(item): def Load(filename): with open(filename, 'r') as handle: - return DeleteNocompileNodes( + schemas = DeleteNocompileNodes( json.loads(json_comment_eater.Nom(handle.read()))) - + schema_util.PrefixSchemasWithNamespace(schemas) + return schemas # A dictionary mapping |filename| to the object resulting from loading the JSON # at |filename|. |