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

Unified Diff: chrome/renderer/extensions/schema_generated_bindings.cc

Issue 8468030: Try to fix linux clobber compile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/schema_generated_bindings.cc
diff --git a/chrome/renderer/extensions/schema_generated_bindings.cc b/chrome/renderer/extensions/schema_generated_bindings.cc
index 55d3220c493be087210a33708827de74eac95b58..4cf1d66f86a55621f4f6045b269e0f20daeddd75 100644
--- a/chrome/renderer/extensions/schema_generated_bindings.cc
+++ b/chrome/renderer/extensions/schema_generated_bindings.cc
@@ -324,14 +324,16 @@ class ExtensionImpl : public ChromeV8Extension {
"fjcibdnjlbfnbfdjneajpipnlcppleek",
"oflbaaikkabfdfkimeclgkackhdkpnip" // Testing extension.
};
+ const std::vector<std::string> allowed_ids(
+ kAllowedIds, kAllowedIds + arraysize(kAllowedIds));
ExtensionImpl* v8_extension = GetFromArguments<ExtensionImpl>(args);
const ::Extension* extension =
v8_extension->GetExtensionForCurrentRenderView();
if (!extension)
return v8::Undefined();
- if (kAllowedIds + arraysize(kAllowedIds) == std::find(
- kAllowedIds, kAllowedIds + arraysize(kAllowedIds), extension->id())) {
+ if (allowed_ids.end() == std::find(
+ allowed_ids.begin(), allowed_ids.end(), extension->id())) {
return v8::Undefined();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698