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

Unified Diff: chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js

Issue 958383003: Output closure-compiled JavaScript files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Always generate source map if minified js is output Created 5 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/browser/resources/enhanced_bookmarks/get_salient_image_url.js
diff --git a/chrome/browser/resources/get_salient_image_url.js b/chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js
similarity index 96%
rename from chrome/browser/resources/get_salient_image_url.js
rename to chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js
index cb3020e6d5dba0512691e2d50e1dae2df87cc719..7debe949d1b687b3242a1e83cc2a20db40da05e6 100644
--- a/chrome/browser/resources/get_salient_image_url.js
+++ b/chrome/browser/resources/enhanced_bookmarks/get_salient_image_url.js
@@ -18,9 +18,9 @@
}
// See what to use for JSON. Some pages use a library that overrides JSON.
- var jsonEncoder = JSON.stringify;
+ var jsonEncoder = JSON['stringify'];
Dan Beam 2015/03/06 02:57:28 why is this necessary? shouldn't externs preserve
Theresa 2015/03/06 03:07:19 The compiler was complaining about not being able
if (!jsonEncoder)
- jsonEncoder = JSON.encode;
+ jsonEncoder = JSON['encode'];
// First look if there is an Open Graph Image property available.
var ogImage = document.querySelector('meta[property=\"og:image\"]');

Powered by Google App Engine
This is Rietveld 408576698