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

Unified Diff: chrome/browser/resources/file_manager/js/drive_banners.js

Issue 11187041: Update 100GB promo URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/drive_banners.js
diff --git a/chrome/browser/resources/file_manager/js/drive_banners.js b/chrome/browser/resources/file_manager/js/drive_banners.js
index 5c89f4a00a60fa0bbeb98cc2f2abd52ebf425ab7..5471c9cddfd1ca9566ad9c2186ff06142754e5e8 100644
--- a/chrome/browser/resources/file_manager/js/drive_banners.js
+++ b/chrome/browser/resources/file_manager/js/drive_banners.js
@@ -60,7 +60,8 @@ var GOOGLE_DRIVE_FAQ_URL =
var GOOGLE_DRIVE_BUY_STORAGE =
'https://www.google.com/settings/storage';
-var GOOGLE_DRIVE_REDEEM = 'https://drive.google.com/redeem';
+var GOOGLE_DRIVE_REDEEM =
+ 'http://www.google.com/intl/en/chrome/devices/goodies.html';
/**
* Location of the FAQ about the downloads directory.
@@ -510,19 +511,12 @@ FileListBannerController.prototype.updateGDataUnmountedPanel_ = function() {
* @private
*/
FileListBannerController.prototype.checkPromoAvailable_ = function() {
- var r = new XMLHttpRequest();
- r.open('HEAD', GOOGLE_DRIVE_REDEEM, true);
- r.onreadystatechange = function() {
- if (r.readyState != 4)
- return;
- this.newWelcome_ = r.status == 200;
- if (this.promoCallbacks_) {
- for (var i = 0; i < this.promoCallbacks_.length; i++)
- this.promoCallbacks_[i]();
- this.promoCallbacks_ = undefined;
- }
- }.bind(this);
- r.send();
+ this.newWelcome_ = true;
+ if (this.promoCallbacks_) {
+ for (var i = 0; i < this.promoCallbacks_.length; i++)
+ this.promoCallbacks_[i]();
+ this.promoCallbacks_ = undefined;
+ }
};
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698