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

Unified Diff: chrome/browser/resources/chromeos/offers/main.js

Issue 9865016: [Chrome OS ECHO] Add cookies permission to extension and change intent disposition to inline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: inline Created 8 years, 9 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/chromeos/offers/main.js
diff --git a/chrome/browser/resources/chromeos/offers/main.js b/chrome/browser/resources/chromeos/offers/main.js
deleted file mode 100644
index 508e30f6001acd1c2cab246a548ace304a48d259..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/chromeos/offers/main.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-function couponCodeCallback(result) {
- response = "getCouponCode returned: " + result;
- console.log(response);
-}
-
-function consentCallback(result) {
- if (result == true) {
- chrome.offersPrivate.getCouponCode("COUPON_CODE", couponCodeCallback);
- return;
- }
- console.log("User declined ECHO!");
-}
-
-window.onload = function() {
- chrome.offersPrivate.getUserConsent(consentCallback);
-}
« no previous file with comments | « chrome/browser/resources/chromeos/offers/main.html ('k') | chrome/browser/resources/chromeos/offers/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698