diff options
author | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 18:33:06 +0000 |
---|---|---|
committer | mihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-26 18:33:06 +0000 |
commit | b6f8e3831bc67964a85de79a62ab6d680e89a2b8 (patch) | |
tree | 1ad70aba78a0c15ee86dc2bf8d10fb1cff86fd99 /chrome | |
parent | 9dff52ca46e993b48f66dd6b4ea7afca9f0413f3 (diff) | |
download | chromium_src-b6f8e3831bc67964a85de79a62ab6d680e89a2b8.zip chromium_src-b6f8e3831bc67964a85de79a62ab6d680e89a2b8.tar.gz chromium_src-b6f8e3831bc67964a85de79a62ab6d680e89a2b8.tar.bz2 |
Update sample cross-domain XMLHttpRequest extension to use the new Twitter trends URL
(switch announceed at http://groups.google.com/group/twitter-api-announce/browse_thread/thread/5fea0e52ae19c1eb)
BUG=none
TEST=install extension, it works again
R=kathyw@chromium.org
Review URL: http://codereview.chromium.org/7031067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/extensions/docs/examples/howto/contentscript_xhr.zip | bin | 9809 -> 8064 bytes | |||
-rw-r--r-- | chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html | 4 | ||||
-rw-r--r-- | chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json | 2 | ||||
-rw-r--r-- | chrome/common/extensions/docs/samples.json | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/extensions/docs/examples/howto/contentscript_xhr.zip b/chrome/common/extensions/docs/examples/howto/contentscript_xhr.zip Binary files differindex d97c922..a3bbf5e 100644 --- a/chrome/common/extensions/docs/examples/howto/contentscript_xhr.zip +++ b/chrome/common/extensions/docs/examples/howto/contentscript_xhr.zip diff --git a/chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html b/chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html index 6e80f22..e99fbf1 100644 --- a/chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html +++ b/chrome/common/extensions/docs/examples/howto/contentscript_xhr/background.html @@ -29,7 +29,7 @@ } // Note that any URL fetched here must be matched by a permission in // the manifest.json file! - var url = 'http://search.twitter.com/trends/current.json?exclude=hashtags'; + var url = 'http://api.twitter.com/1/trends/current.json?exclude=hashtags'; xhr.open('GET', url, true); xhr.send(); }; @@ -52,4 +52,4 @@ chrome.extension.onRequest.addListener(onRequest); </script> </body> -</html>
\ No newline at end of file +</html> diff --git a/chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json b/chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json index 3a71409..6aee5ea 100644 --- a/chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json +++ b/chrome/common/extensions/docs/examples/howto/contentscript_xhr/manifest.json @@ -3,7 +3,7 @@ "version": "1.0.0", "description": "Demonstrates a method to make a cross-domain XMLHttpRequest fetch from a content script. This extension fetches the current trending topics from Twitter and inserts them in an overlay at the top of Google News. Visit http://news.google.com to test this extension.", "permissions": [ - "http://search.twitter.com/*" + "http://api.twitter.com/*" ], "icons": { "48" : "sample-48.png", diff --git a/chrome/common/extensions/docs/samples.json b/chrome/common/extensions/docs/samples.json index cc0c340..927adb9 100644 --- a/chrome/common/extensions/docs/samples.json +++ b/chrome/common/extensions/docs/samples.json @@ -617,7 +617,7 @@ "contentscript.js", "manifest.json" ], - "source_hash": "0fe56cea50dc18b7e5e31d47c383356a85d8b896", + "source_hash": "d77b68c4839500a5974d4775033f2ee94bb611f7", "zip_path": "examples\/howto\/contentscript_xhr.zip" }, { |