summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgauravsh@chromium.org <gauravsh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 03:57:49 +0000
committergauravsh@chromium.org <gauravsh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 03:57:49 +0000
commit645cd06163a9a788e9b3a11cd00d27a6c9994a3a (patch)
treeb6dce96ab5bb3a4028cf40dddf29b255d1e31be2
parent9713fa838364257affc9e863a4f842f044fa0c20 (diff)
downloadchromium_src-645cd06163a9a788e9b3a11cd00d27a6c9994a3a.zip
chromium_src-645cd06163a9a788e9b3a11cd00d27a6c9994a3a.tar.gz
chromium_src-645cd06163a9a788e9b3a11cd00d27a6c9994a3a.tar.bz2
[Chrome OS ECHO] Register offers extension as a Web Intents handler
Register the offers component extension as a web intents handler for a (action="confirmEligibility", type="chromeos/offers") intent. Also implement extension functionality to 1) ask for user consent, 2) make coupon code request via the the private extension call, 3) make a request to the APIary offers service. BUG=chromium-os:27856 TEST=manually by navigating to a test offers URL Review URL: http://codereview.chromium.org/9810003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128680 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/resources/chromeos/offers/manifest.json13
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/resources/chromeos/offers/manifest.json b/chrome/browser/resources/chromeos/offers/manifest.json
index e0d172a..3956609 100644
--- a/chrome/browser/resources/chromeos/offers/manifest.json
+++ b/chrome/browser/resources/chromeos/offers/manifest.json
@@ -5,6 +5,15 @@
"version": "0.0.1",
"description": "Offers Component Extension",
"permissions": [
- "offersPrivate"
- ]
+ "offersPrivate",
+ "https://*.google.com/*"
+ ],
+ "intents": {
+ "https://crosoffers.com/checkOfferEligibility": {
+ "type" : ["application/vnd.chromeos.offers"],
+ "title" : "Redeem Chrome OS Offer",
+ "path" : "/main.html",
+ "disposition" : "window"
+ }
+ }
}