diff options
author | markdittmer@chromium.org <markdittmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-15 19:15:26 +0000 |
---|---|---|
committer | markdittmer@chromium.org <markdittmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-15 19:17:03 +0000 |
commit | 15ad2ee53e139d49694c596e7be71bd6e9254ca0 (patch) | |
tree | c0310fb0f226530b4312e4a3811a21dd7856b9b8 /extensions/common/user_script.cc | |
parent | e120b01ad8f20b40579eb0a5b43c17fc9d0698d5 (diff) | |
download | chromium_src-15ad2ee53e139d49694c596e7be71bd6e9254ca0.zip chromium_src-15ad2ee53e139d49694c596e7be71bd6e9254ca0.tar.gz chromium_src-15ad2ee53e139d49694c596e7be71bd6e9254ca0.tar.bz2 |
Declarative content scripts: Browser-side: per-extension shared memory regions (lazily loaded)
BUG=377978
Review URL: https://codereview.chromium.org/420543002
Cr-Commit-Position: refs/heads/master@{#289969}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@289969 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/common/user_script.cc')
-rw-r--r-- | extensions/common/user_script.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc index 128ac55..2e705ce8 100644 --- a/extensions/common/user_script.cc +++ b/extensions/common/user_script.cc @@ -240,4 +240,11 @@ void UserScript::UnpickleScripts(const ::Pickle& pickle, PickleIterator* iter, } } +bool operator<(const UserScript& script1, const UserScript& script2) { + // The only kind of script that should be compared is the kind that has its + // IDs initialized to a meaningful value. + DCHECK(script1.id() != -1 && script2.id() != -1); + return script1.id() < script2.id(); +} + } // namespace extensions |