diff options
author | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-18 02:05:25 +0000 |
---|---|---|
committer | kalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-18 02:05:25 +0000 |
commit | 8774f4b65b6a970dd98e5000888b0c83358f4229 (patch) | |
tree | e139fb9d0b4724ff92968f55ffc2ebed50ecd5a8 /chrome/renderer/resource_bundle_source_map.cc | |
parent | 14acb5764b5a947975d7b7905a1ecdde2b91abad (diff) | |
download | chromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.zip chromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.tar.gz chromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.tar.bz2 |
Convert app_bindings.js to the schema_generated_bindings.js infrastructure.
This involves opening up *all* custom bindings to web pages, where access is
controlled content-script style using a URL-matches property in the API schema.
BUG=104100,117282
TEST=unit_tests,browser_tests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125811
Review URL: http://codereview.chromium.org/9460002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/resource_bundle_source_map.cc')
-rw-r--r-- | chrome/renderer/resource_bundle_source_map.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/renderer/resource_bundle_source_map.cc b/chrome/renderer/resource_bundle_source_map.cc index 2c06b7b..5a42582 100644 --- a/chrome/renderer/resource_bundle_source_map.cc +++ b/chrome/renderer/resource_bundle_source_map.cc @@ -28,7 +28,7 @@ v8::Handle<v8::Value> ResourceBundleSourceMap::GetSource( } bool ResourceBundleSourceMap::Contains(const std::string& name) { - return resource_id_map_.count(name) > 0; + return !!resource_id_map_.count(name); } v8::Handle<v8::String> ResourceBundleSourceMap::ConvertString( |