Chromium Code Reviews| 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\"]'); |