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

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

Issue 12313142: Revert 184837 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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/extensions/json_schema_unittest.cc
===================================================================
--- chrome/renderer/extensions/json_schema_unittest.cc (revision 184858)
+++ chrome/renderer/extensions/json_schema_unittest.cc (working copy)
@@ -27,17 +27,12 @@
std::string code = ResourceBundle::GetSharedInstance().GetRawDataResource(
IDR_JSON_SCHEMA_JS).as_string();
- // json_schema.js expects to have require() and requireNative() defined.
+ // json_schema.js expects to have requireNative() defined.
ExecuteScriptInContext(
"function requireNative(id) {"
" return {"
" GetChromeHidden: function() { return {}; },"
" };"
- "}"
- "function require(id) {"
- " return {"
- " loadRefDependency: function(foo) { return {}; },"
- " };"
"}",
"test-code");
ExecuteScriptInContext(code, kJsonSchema);
« no previous file with comments | « chrome/renderer/extensions/i18n_custom_bindings.cc ('k') | chrome/renderer/extensions/miscellaneous_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698