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

Unified Diff: chrome/renderer/resource_bundle_source_map.cc

Issue 9460002: Convert app_bindings.js to the schema_generated_bindings.js infrastructure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reabse Created 8 years, 9 months 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/renderer/resource_bundle_source_map.cc
diff --git a/chrome/renderer/resource_bundle_source_map.cc b/chrome/renderer/resource_bundle_source_map.cc
index 2c06b7b318adfcee1ffaa8b70dabbe4fe7d73a89..5a4258204790d8485bd0183389115c36f4ed6f30 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(

Powered by Google App Engine
This is Rietveld 408576698