commit | 46babb29a2e0f45d940a3197c74ddfa3b7abb7bf | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Mar 21 04:09:23 2012 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Wed Mar 21 04:09:23 2012 |
tree | 59aa719c22084d760027e0b38d9d4d668342dda6 | |
parent | cd2c46e818a21cef01ccdf7c13bf3577d228e894 [diff] [blame] |
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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=127391 Review URL: http://codereview.chromium.org/9460002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127899 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/renderer/resource_bundle_source_map.cc b/chrome/renderer/resource_bundle_source_map.cc index 2c06b7b..5a425820 100644 --- a/chrome/renderer/resource_bundle_source_map.cc +++ b/chrome/renderer/resource_bundle_source_map.cc
@@ -28,7 +28,7 @@ } 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(